////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// THIS IS AUTO-GENERATED CODE.  PLEASE DO NOT EDIT (File bug reports against tools).
///
/// Auto-generated by: Parameter Parser V5.5.1 (2411131018)
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @file  aecskip.cpp
/// @brief Auto-generated Chromatix parameter file
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#include "aecskip.h"
#include "parametersetmanager.h"

AECSKIP_NAMESPACE_BEGIN

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// SetValue/GetValue Functions
/// Gets or sets the requested value
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool DFSSkipCountZoneDataType::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "DFSSkipCount") == 0)
    {
        ParameterUtils::DoubleToString((double)DFSSkipCount, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "DFSMinSettleThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)DFSMinSettleThreshold, __value, __size, 0);
        __result = true;
    }

    return __result;
}

bool DFSSkipCountZoneDataType::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "DFSSkipCount") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            DFSSkipCount = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "DFSMinSettleThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            DFSMinSettleThreshold = (INT32)dblValue; 
        }
    }

    return __result;
}

bool DFSSkipCountZoneDataType::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // DFSSkipCount
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("DFSSkipCount", ParameterParserDataType::Int32, (double)DFSSkipCount, 0));
    }
    else if (PARAMETER_STRCMP(__name, "DFSSkipCount") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Int32, (double)DFSSkipCount, 0));
    }

    // DFSMinSettleThreshold
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("DFSMinSettleThreshold", ParameterParserDataType::Int32, (double)DFSMinSettleThreshold, 0));
    }
    else if (PARAMETER_STRCMP(__name, "DFSMinSettleThreshold") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Int32, (double)DFSMinSettleThreshold, 0));
    }

    return __result;
}

bool DFSSkipCountZoneType::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "zoneTrigger") == 0)
    {
        __result = zoneTrigger.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "zoneData") == 0)
    {
        __result = zoneData.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool DFSSkipCountZoneType::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "zoneTrigger") == 0)
    {
        __result = zoneTrigger.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "zoneData") == 0)
    {
        __result = zoneData.SetValue(&__path[__pos], __value);
    }

    return __result;
}

bool DFSSkipCountZoneType::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // zoneTrigger
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("zoneTrigger", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "zoneTrigger") == 0)
    {
        __result = zoneTrigger.GetInfo(&__path[__pos], __info);
    }

    // zoneData
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("zoneData", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "zoneData") == 0)
    {
        __result = zoneData.GetInfo(&__path[__pos], __info);
    }

    return __result;
}

bool SkipCustomAECStatsParsingType::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "Custom1") == 0)
    {
        __result = Custom1.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "Custom2") == 0)
    {
        __result = Custom2.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool SkipCustomAECStatsParsingType::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "Custom1") == 0)
    {
        __result = Custom1.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "Custom2") == 0)
    {
        __result = Custom2.SetValue(&__path[__pos], __value);
    }

    return __result;
}

bool SkipCustomAECStatsParsingType::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // Custom1
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("Custom1", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "Custom1") == 0)
    {
        __result = Custom1.GetInfo(&__path[__pos], __info);
    }

    // Custom2
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("Custom2", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "Custom2") == 0)
    {
        __result = Custom2.GetInfo(&__path[__pos], __info);
    }

    return __result;
}

bool SkipAECStatsParsingType::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "BHistSkipParsing") == 0)
    {
        __result = BHistSkipParsing.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "IHistSkipParsing") == 0)
    {
        __result = IHistSkipParsing.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "HDRBHistSkipParsing") == 0)
    {
        __result = HDRBHistSkipParsing.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "HDRBESkipParsing") == 0)
    {
        __result = HDRBESkipParsing.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool SkipAECStatsParsingType::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "BHistSkipParsing") == 0)
    {
        __result = BHistSkipParsing.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "IHistSkipParsing") == 0)
    {
        __result = IHistSkipParsing.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "HDRBHistSkipParsing") == 0)
    {
        __result = HDRBHistSkipParsing.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "HDRBESkipParsing") == 0)
    {
        __result = HDRBESkipParsing.SetValue(&__path[__pos], __value);
    }

    return __result;
}

bool SkipAECStatsParsingType::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // BHistSkipParsing
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("BHistSkipParsing", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "BHistSkipParsing") == 0)
    {
        __result = BHistSkipParsing.GetInfo(&__path[__pos], __info);
    }

    // IHistSkipParsing
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("IHistSkipParsing", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "IHistSkipParsing") == 0)
    {
        __result = IHistSkipParsing.GetInfo(&__path[__pos], __info);
    }

    // HDRBHistSkipParsing
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("HDRBHistSkipParsing", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "HDRBHistSkipParsing") == 0)
    {
        __result = HDRBHistSkipParsing.GetInfo(&__path[__pos], __info);
    }

    // HDRBESkipParsing
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("HDRBESkipParsing", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "HDRBESkipParsing") == 0)
    {
        __result = HDRBESkipParsing.GetInfo(&__path[__pos], __info);
    }

    return __result;
}

bool AECSkipCtrlType::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "module_version") == 0)
    {
        __result = module_version.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "parameter_version") == 0)
    {
        __result = parameter_version.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "DFSEnable") == 0)
    {
        ParameterUtils::DoubleToString((double)DFSEnable, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "DFSExpIndexTolerance") == 0)
    {
        ParameterUtils::DoubleToString((double)DFSExpIndexTolerance, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "DFSMaxHistoryCount") == 0)
    {
        ParameterUtils::DoubleToString((double)DFSMaxHistoryCount, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "SkipAECStatsParsing") == 0)
    {
        __result = SkipAECStatsParsing.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "SkipCustomAECStatsParsing") == 0)
    {
        __result = SkipCustomAECStatsParsing.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "DFSSkipCountZone") == 0)
    {
        if (__index < DFSSkipCountZoneCount)
        {
            __result = DFSSkipCountZone[__index].GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool AECSkipCtrlType::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "module_version") == 0)
    {
        __result = module_version.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "parameter_version") == 0)
    {
        __result = parameter_version.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "DFSEnable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            DFSEnable = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "DFSExpIndexTolerance") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            DFSExpIndexTolerance = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "DFSMaxHistoryCount") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            DFSMaxHistoryCount = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "SkipAECStatsParsing") == 0)
    {
        __result = SkipAECStatsParsing.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "SkipCustomAECStatsParsing") == 0)
    {
        __result = SkipCustomAECStatsParsing.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "DFSSkipCountZone") == 0)
    {
        if (__index < DFSSkipCountZoneCount)
        {
            __result = DFSSkipCountZone[__index].SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

bool AECSkipCtrlType::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // module_version
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("module_version", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "module_version") == 0)
    {
        __result = module_version.GetInfo(&__path[__pos], __info);
    }

    // parameter_version
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("parameter_version", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "parameter_version") == 0)
    {
        __result = parameter_version.GetInfo(&__path[__pos], __info);
    }

    // DFSEnable
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("DFSEnable", ParameterParserDataType::Boolean, (double)DFSEnable, 0));
    }
    else if (PARAMETER_STRCMP(__name, "DFSEnable") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Boolean, (double)DFSEnable, 0));
    }

    // DFSExpIndexTolerance
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("DFSExpIndexTolerance", ParameterParserDataType::Float, (double)DFSExpIndexTolerance));
    }
    else if (PARAMETER_STRCMP(__name, "DFSExpIndexTolerance") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)DFSExpIndexTolerance));
    }

    // DFSMaxHistoryCount
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("DFSMaxHistoryCount", ParameterParserDataType::Int32, (double)DFSMaxHistoryCount, 0));
    }
    else if (PARAMETER_STRCMP(__name, "DFSMaxHistoryCount") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Int32, (double)DFSMaxHistoryCount, 0));
    }

    // SkipAECStatsParsing
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("SkipAECStatsParsing", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "SkipAECStatsParsing") == 0)
    {
        __result = SkipAECStatsParsing.GetInfo(&__path[__pos], __info);
    }

    // SkipCustomAECStatsParsing
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("SkipCustomAECStatsParsing", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "SkipCustomAECStatsParsing") == 0)
    {
        __result = SkipCustomAECStatsParsing.GetInfo(&__path[__pos], __info);
    }

    // DFSSkipCountZone
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("DFSSkipCountZone", ParameterParserDataType::Structure, true, false, DFSSkipCountZoneCount));
    }
    else if (PARAMETER_STRCMP(__name, "DFSSkipCountZone") == 0)
    {
        if (__index < DFSSkipCountZoneCount)
        {
            __result = DFSSkipCountZone[__index].GetInfo(&__path[__pos], __info);
        }
        else
        {
            __result = true;
            __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Structure, true, false, DFSSkipCountZoneCount));
        }
    }

    return __result;
}

bool AECSkipCtrlType::module_versionStruct::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "major_revision") == 0)
    {
        ParameterUtils::DoubleToString((double)major_revision, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "minor_revision") == 0)
    {
        ParameterUtils::DoubleToString((double)minor_revision, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "incr_revision") == 0)
    {
        ParameterUtils::DoubleToString((double)incr_revision, __value, __size, 0);
        __result = true;
    }

    return __result;
}

bool AECSkipCtrlType::module_versionStruct::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "major_revision") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            major_revision = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "minor_revision") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minor_revision = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "incr_revision") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            incr_revision = (INT32)dblValue; 
        }
    }

    return __result;
}

bool AECSkipCtrlType::module_versionStruct::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // major_revision
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("major_revision", ParameterParserDataType::Int32, (double)major_revision, 0));
    }
    else if (PARAMETER_STRCMP(__name, "major_revision") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Int32, (double)major_revision, 0));
    }

    // minor_revision
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("minor_revision", ParameterParserDataType::Int32, (double)minor_revision, 0));
    }
    else if (PARAMETER_STRCMP(__name, "minor_revision") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Int32, (double)minor_revision, 0));
    }

    // incr_revision
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("incr_revision", ParameterParserDataType::Int32, (double)incr_revision, 0));
    }
    else if (PARAMETER_STRCMP(__name, "incr_revision") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Int32, (double)incr_revision, 0));
    }

    return __result;
}

bool AECSkipCtrlType::parameter_versionStruct::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "revision") == 0)
    {
        PARAMETER_STRCPY(__value, __size, revision);
        __result = true;
    }

    return __result;
}

bool AECSkipCtrlType::parameter_versionStruct::SetValue(
    const CHAR* const __path,
    const CHAR* const /*__value*/)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "revision") == 0)
    {
        // Cannot modify strings, risk of memory leaks or corruption
    }

    return __result;
}

bool AECSkipCtrlType::parameter_versionStruct::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // revision
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("revision", ParameterParserDataType::String, revision));
    }
    else if (PARAMETER_STRCMP(__name, "revision") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::String, revision));
    }

    return __result;
}


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Default Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AECSkipCtrlTypeClass::AECSkipCtrlTypeClass(
    const CHAR* const name)
    : ParameterModule(name, MAJOR, MINOR, PATCH, nullptr)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(DFSEnable);
    PARAMETER_INITIALIZE(DFSExpIndexTolerance);
    PARAMETER_INITIALIZE(DFSMaxHistoryCount);
    PARAMETER_INITIALIZE(SkipAECStatsParsing);
    PARAMETER_INITIALIZE(SkipCustomAECStatsParsing);
    PARAMETER_INITIALIZE(DFSSkipCountZoneCount);
    PARAMETER_INITIALIZE(DFSSkipCountZone);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AECSkipCtrlTypeClass::AECSkipCtrlTypeClass(
    const CHAR* const name,
    ModuleData* const moduleData)
    : ParameterModule(name, MAJOR, MINOR, PATCH, moduleData)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(DFSEnable);
    PARAMETER_INITIALIZE(DFSExpIndexTolerance);
    PARAMETER_INITIALIZE(DFSMaxHistoryCount);
    PARAMETER_INITIALIZE(SkipAECStatsParsing);
    PARAMETER_INITIALIZE(SkipCustomAECStatsParsing);
    PARAMETER_INITIALIZE(DFSSkipCountZone);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Destructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AECSkipCtrlTypeClass::~AECSkipCtrlTypeClass()
{
    if (Loaded)
    {
        UnloadModule();
    }
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// GetName
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
const CHAR* AECSkipCtrlTypeClass::GetName(
    const CHAR* const type)
{
    const CHAR* name = type;
    CHAR temp[ParameterFileSymbolTableEntry::TYPE_LEN + 1];
    if (PARAMETER_STRCMP(type, ModuleData::GetType(temp, "aecSkipCtrl")) == 0)
    {
        name = "aecSkipCtrl";
    }
    return name;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load DFSSkipCountZoneDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool DFSSkipCountZoneDataType::Load(
    ParameterFileSymbolTableEntry* const entry,
    BYTE const alignment)
{
    bool result = true;

    PARAMETER_INITIALIZE(DFSSkipCount);
    PARAMETER_INITIALIZE(DFSMinSettleThreshold);

    SYMBOL_TABLE_ENTRY_READ(entry, result, DFSSkipCount, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, DFSMinSettleThreshold, alignment)

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load DFSSkipCountZoneType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool DFSSkipCountZoneType::Load(
    ParameterFileSymbolTableEntry* const entry,
    BYTE const alignment)
{
    bool result = true;

    PARAMETER_INITIALIZE(zoneTrigger);
    PARAMETER_INITIALIZE(zoneData);

    result = zoneTrigger.Load(entry, alignment);
    if (result)
    {
        result = zoneData.Load(entry, alignment);
    }

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load SkipCustomAECStatsParsingType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool SkipCustomAECStatsParsingType::Load(
    ParameterFileSymbolTableEntry* const entry,
    BYTE const alignment)
{
    bool result = true;

    PARAMETER_INITIALIZE(Custom1);
    PARAMETER_INITIALIZE(Custom2);

    result = Custom1.Load(entry, alignment);
    if (result)
    {
        result = Custom2.Load(entry, alignment);
    }

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load SkipAECStatsParsingType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool SkipAECStatsParsingType::Load(
    ParameterFileSymbolTableEntry* const entry,
    BYTE const alignment)
{
    bool result = true;

    PARAMETER_INITIALIZE(BHistSkipParsing);
    PARAMETER_INITIALIZE(IHistSkipParsing);
    PARAMETER_INITIALIZE(HDRBHistSkipParsing);
    PARAMETER_INITIALIZE(HDRBESkipParsing);

    result = BHistSkipParsing.Load(entry, alignment);
    if (result)
    {
        result = IHistSkipParsing.Load(entry, alignment);
    }
    if (result)
    {
        result = HDRBHistSkipParsing.Load(entry, alignment);
    }
    if (result)
    {
        result = HDRBESkipParsing.Load(entry, alignment);
    }

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load AECSkipCtrlType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool AECSkipCtrlType::Load(
    ParameterFileSymbolTableEntry* const entry,
    BYTE const alignment)
{
    bool result = true;

    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(DFSEnable);
    PARAMETER_INITIALIZE(DFSExpIndexTolerance);
    PARAMETER_INITIALIZE(DFSMaxHistoryCount);
    PARAMETER_INITIALIZE(SkipAECStatsParsing);
    PARAMETER_INITIALIZE(SkipCustomAECStatsParsing);
    PARAMETER_INITIALIZE(DFSSkipCountZone);

    result = module_version.Load(entry, alignment);
    if (result)
    {
        result = parameter_version.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, DFSEnable, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, DFSExpIndexTolerance, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, DFSMaxHistoryCount, alignment)
    if (result)
    {
        result = SkipAECStatsParsing.Load(entry, alignment);
    }
    if (result)
    {
        result = SkipCustomAECStatsParsing.Load(entry, alignment);
    }

    // Reading Array DFSSkipCountZone from symbol table
    // Do not check result value here because the count value needs to be initialized in this block
    {
        DFSSkipCountZoneCount = 0;
        SYMBOL_TABLE_ENTRY_READ(entry, result, DFSSkipCountZoneCount, alignment)
        constexpr const CHAR* const file {__FILE__};
        constexpr INT32 line {LINE_CONST};
        ParameterFileSymbolTableEntry  pointerEntryCls;
        ParameterFileSymbolTableEntry* const pointerEntry = &pointerEntryCls;
        if (result)
        {
            result = entry->Table->ReadPointerEntry(pointerEntryCls, entry, alignment);
        }

        if (result)
        {
            DFSSkipCountZoneID = pointerEntry->ID;
            DupObjInfo* DFSSkipCountZoneDupInfo = pointerEntry->GetDupObject(DFSSkipCountZoneCount, file, line);
            if (DFSSkipCountZoneDupInfo != nullptr && DFSSkipCountZoneDupInfo->Object != nullptr)
            {
                DFSSkipCountZone = (DFSSkipCountZoneType*)DFSSkipCountZoneDupInfo->Object;
                if (DFSSkipCountZone == nullptr)
                {
                    if (DFSSkipCountZoneDupInfo->File != nullptr)
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "DFSSkipCountZone duplicate found but object is nullptr: %s:%d, RefCount: %d\n",
                            DFSSkipCountZoneDupInfo->File, DFSSkipCountZoneDupInfo->Line, DFSSkipCountZoneDupInfo->RefCount);
                    }
                    else
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "DFSSkipCountZone duplicate found but Object is nullptr: <nullptr file ptr>:%d, RefCount: %d\n",
                            DFSSkipCountZoneDupInfo->Line, DFSSkipCountZoneDupInfo->RefCount);
                    }
                }
            }

            if (DFSSkipCountZone == nullptr)
            {
                if (result && DFSSkipCountZoneCount > 0)
                {
                    DFSSkipCountZone = PARAMETER_NEW DFSSkipCountZoneType[DFSSkipCountZoneCount];
                    (void)pointerEntry->SetDupObject(DFSSkipCountZone, DFSSkipCountZoneCount, file, line);
                }
                if (!result || DFSSkipCountZone == nullptr)
                {
                    if (DFSSkipCountZoneCount > 0)
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "Failed to allocate DFSSkipCountZone\n");
                    }
                    DFSSkipCountZoneCount = 0;
                }
                for (UINT32 i = 0; result && i < DFSSkipCountZoneCount; i++)
                {
                    result = DFSSkipCountZone[i].Load(pointerEntry, alignment);
                }
            }
        }
        if (DFSSkipCountZone == nullptr)
        {
            DFSSkipCountZoneCount = 0;
        }
    }

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load module_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool AECSkipCtrlType::module_versionStruct::Load(
    ParameterFileSymbolTableEntry* const entry,
    BYTE const alignment)
{
    bool result = true;

    PARAMETER_INITIALIZE(major_revision);
    PARAMETER_INITIALIZE(minor_revision);
    PARAMETER_INITIALIZE(incr_revision);

    SYMBOL_TABLE_ENTRY_READ(entry, result, major_revision, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, minor_revision, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, incr_revision, alignment)

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load parameter_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool AECSkipCtrlType::parameter_versionStruct::Load(
    ParameterFileSymbolTableEntry* const entry,
    BYTE const alignment)
{
    bool result = true;

    PARAMETER_INITIALIZE(revision);


    // Reading String revision from symbol table
    {
        UINT32 count = 0;
        SYMBOL_TABLE_ENTRY_READ(entry, result, count, alignment)
        ParameterFileSymbolTableEntry stringPointerEntryCls;
        ParameterFileSymbolTableEntry* const stringPointerEntry = &stringPointerEntryCls;
        if (result)
        {
            result = entry->Table->ReadPointerEntry(stringPointerEntryCls, entry, alignment);
        }
        SYMBOL_TABLE_ENTRY_READ_STRING(stringPointerEntry, result, revision, count, alignment)
    }

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload SkipCustomAECStatsParsingType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void SkipCustomAECStatsParsingType::Unload(ParameterFileSymbolTable* const __table)
{
    Custom1.Unload(__table);
    Custom2.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload SkipAECStatsParsingType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void SkipAECStatsParsingType::Unload(ParameterFileSymbolTable* const __table)
{
    BHistSkipParsing.Unload(__table);
    IHistSkipParsing.Unload(__table);
    HDRBHistSkipParsing.Unload(__table);
    HDRBESkipParsing.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload AECSkipCtrlType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECSkipCtrlType::Unload(ParameterFileSymbolTable* const __table)
{
    parameter_version.Unload(__table);
    SkipAECStatsParsing.Unload(__table);
    SkipCustomAECStatsParsing.Unload(__table);
    if (__table != nullptr && __table->ReleaseDupObject(DFSSkipCountZone))
    {
        PARAMETER_DELETE[] DFSSkipCountZone;
    }
    DFSSkipCountZone = nullptr;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload parameter_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECSkipCtrlType::parameter_versionStruct::Unload(ParameterFileSymbolTable* const __table)
{
    if (__table != nullptr && __table->ReleaseDupObject(revision))
    {
        PARAMETER_DELETE[] revision;
    }
    revision = nullptr;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Release the ParameterModule object
/// Requires that this object was created via a ParameterSetManager::GetModule call
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECSkipCtrlType::Release()
{
    ((AECSkipCtrlTypeClass*)this)->Release();
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Returns the ParameterModule::Modified value
/// The Modified value is incremented when the module's data or pointer values change
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
UINT32 AECSkipCtrlType::GetModified()
{
    return ((AECSkipCtrlTypeClass*)this)->Modified;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Create module, and return a new object
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
ParameterModule* AECSkipCtrlTypeClass::Create(
    ModuleData*    moduleData,
    DefaultModule* const defModule) const
{
    AECSkipCtrlTypeClass* cls = nullptr;

    if (PARAMETER_STRCMP(Type, moduleData->Type) == 0 && Version.Value == moduleData->Version.Value)
    {
        const UINT32 id = moduleData->DuplicateID > 0 ? moduleData->DuplicateID : moduleData->ID;

        ParameterModule* const module = defModule->Find(id);
        if (module != nullptr)
        {
            cls = (AECSkipCtrlTypeClass*)module;
        }
        else
        {
            cls = PARAMETER_NEW AECSkipCtrlTypeClass(GetName(moduleData->Type), moduleData);
            cls->SymbolTableID = id;
            defModule->AddModule((ParameterModule*)cls);
        }
    }
    else if (Version.Value != moduleData->Version.Value)
    {
        PARAMETER_LOG_ERROR(moduleData->SetManager, "Unable to create AECSkipCtrlTypeClass, binary version (%lld) does not match source version (%lld)\n",
            moduleData->Version.Value, Version.Value);
    }
    else
    {
        PARAMETER_LOG_ERROR(moduleData->SetManager, "Unable to create AECSkipCtrlTypeClass, binary name (%s) does not match source name (%s)\n",
            moduleData->Type, Type);
    }

    return (ParameterModule*)cls;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load module data, return true is successful
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool AECSkipCtrlTypeClass::LoadModule(
    ParameterFileSymbolTable* const table)
{
    bool result = true;

    if (!Loaded)
    {
        BYTE const alignment = table->Alignment;
        AECSkipCtrlTypeClass* const cls = this;

        ParameterFileSymbolTableEntry  entryObj;
        ParameterFileSymbolTableEntry* const entry = &entryObj;
        // With EzTune enabled, the unused upper byte of SymbolTableID value can change, so clear it
        result = table->Find(entryObj, SymbolTableID & 0x00ffffff);

        if (!result)
        {
            PARAMETER_LOG_ERROR(entry->SetManager, "AECSkipCtrlTypeClass::LoadModule Failed to find module ID (%d) in Symbol Table\n", SymbolTableID);
        }

        if (result)
        {
            result = cls->Load(entry, alignment);
        }
        Modified++;
        Loaded = true;
    }

    if (!result)
    {
        /// Module failed to fully load, unload it
        UnloadModule();
    }

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload module data
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECSkipCtrlTypeClass::UnloadModule()
{
    if (Loaded)
    {
        if (Data != nullptr && Data->SymbolTable != nullptr)
        {
            Unload(Data->SymbolTable);
        }
        else
        {
            PARAMETER_LOG_ERROR(Data != nullptr ? Data->SetManager : nullptr, "UnloadModule %s called with nullptr "
                "Data->SymbolTable object\n", Name);
            Unload(nullptr);
        }
        Loaded = false;
    }
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// /// Release the ParameterModule object
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECSkipCtrlTypeClass::Release()
{
    ParameterModule::Release();
}

AECSKIP_NAMESPACE_END
