////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// 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 V7.4.1 (8cca6579792b9fcef3bc725ff070c5ec453c7c85)
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

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

#include "aecxstartup.h"
#include "parametersetmanager.h"

AECXSTARTUP_NAMESPACE_BEGIN

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// SetValue/GetValue Functions
/// Gets or sets the requested value
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool CenterWeightedMtrTable::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;

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

    if (PARAMETER_STRCMP(__name, "weight") == 0)
    {
        if (__index < weightFixedCount)
        {
            ParameterUtils::DoubleToString((double)weight[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < weightFixedCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)weight[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool CenterWeightedMtrTable::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;

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

    if (PARAMETER_STRCMP(__name, "weight") == 0)
    {
        if (__index < weightFixedCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                weight[__index] = (float)dblValue; 
            }
        }
        else
        {
            const SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __valuePos = 0;

            __index = 0;
            while (__valuePos < __valueLen && __index < weightFixedCount)
            {
                CHAR __valueStr[MAX_SIZE];

                __valuePos += ParameterUtils::GetSubString(&__value[__valuePos], ',', __valueStr, MAX_SIZE);
                __valuePos++;

                const double dblValue = ParameterUtils::StringToDouble(__valueStr, __result);
                if (__result)
                {
                    weight[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

bool CenterWeightedMtrTable::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;

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

    // weight
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("weight", ParameterParserDataType::Float, true, false, weightFixedCount));
    }

    return __result;
}

bool AONCenterWeightLumaType::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, "mtrWightTable") == 0)
    {
        __result = mtrWightTable.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "frameLumaTarget") == 0)
    {
        if (__index < frameLumaTargetCount)
        {
            __result = frameLumaTarget[__index].GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool AONCenterWeightLumaType::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, "mtrWightTable") == 0)
    {
        __result = mtrWightTable.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "frameLumaTarget") == 0)
    {
        if (__index < frameLumaTargetCount)
        {
            __result = frameLumaTarget[__index].SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

bool AONCenterWeightLumaType::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);

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

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

    return __result;
}

bool AONTimeStampLimitedType::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, "enableTimeStampJudge") == 0)
    {
        ParameterUtils::DoubleToString((double)enableTimeStampJudge, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "aonTimeStampThres") == 0)
    {
        if (__index < aonTimeStampThresCount)
        {
            __result = aonTimeStampThres[__index].GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool AONTimeStampLimitedType::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, "enableTimeStampJudge") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enableTimeStampJudge = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "aonTimeStampThres") == 0)
    {
        if (__index < aonTimeStampThresCount)
        {
            __result = aonTimeStampThres[__index].SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

bool AONTimeStampLimitedType::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);

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

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

    return __result;
}

bool LumaWeightType::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;

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

    if (PARAMETER_STRCMP(__name, "weight") == 0)
    {
        if (__index < weightFixedCount)
        {
            ParameterUtils::DoubleToString((double)weight[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < weightFixedCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)weight[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool LumaWeightType::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;

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

    if (PARAMETER_STRCMP(__name, "weight") == 0)
    {
        if (__index < weightFixedCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                weight[__index] = (float)dblValue; 
            }
        }
        else
        {
            const SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __valuePos = 0;

            __index = 0;
            while (__valuePos < __valueLen && __index < weightFixedCount)
            {
                CHAR __valueStr[MAX_SIZE];

                __valuePos += ParameterUtils::GetSubString(&__value[__valuePos], ',', __valueStr, MAX_SIZE);
                __valuePos++;

                const double dblValue = ParameterUtils::StringToDouble(__valueStr, __result);
                if (__result)
                {
                    weight[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

bool LumaWeightType::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;

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

    // weight
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("weight", ParameterParserDataType::Float, true, false, weightFixedCount));
    }

    return __result;
}

bool AONSensorAssitType::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, "enable") == 0)
    {
        ParameterUtils::DoubleToString((double)enable, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "enableAonTargetSI") == 0)
    {
        ParameterUtils::DoubleToString((double)enableAonTargetSI, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "enableCapAonLuxIndex") == 0)
    {
        ParameterUtils::DoubleToString((double)enableCapAonLuxIndex, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "aonLuxDiffThres") == 0)
    {
        __result = aonLuxDiffThres.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "lumaWeight") == 0)
    {
        __result = lumaWeight.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "aonSiAdaptRatio") == 0)
    {
        ParameterUtils::DoubleToString((double)aonSiAdaptRatio, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "aonLuxIndexAdaptOffset") == 0)
    {
        ParameterUtils::DoubleToString((double)aonLuxIndexAdaptOffset, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "aonMaxExpIndex") == 0)
    {
        ParameterUtils::DoubleToString((double)aonMaxExpIndex, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "aonTimeStampAvailableThres") == 0)
    {
        __result = aonTimeStampAvailableThres.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "frameSALuma") == 0)
    {
        __result = frameSALuma.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "faceSALuma") == 0)
    {
        __result = faceSALuma.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool AONSensorAssitType::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, "enable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enable = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "enableAonTargetSI") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enableAonTargetSI = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "enableCapAonLuxIndex") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enableCapAonLuxIndex = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "aonLuxDiffThres") == 0)
    {
        __result = aonLuxDiffThres.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "lumaWeight") == 0)
    {
        __result = lumaWeight.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "aonSiAdaptRatio") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            aonSiAdaptRatio = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "aonLuxIndexAdaptOffset") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            aonLuxIndexAdaptOffset = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "aonMaxExpIndex") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            aonMaxExpIndex = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "aonTimeStampAvailableThres") == 0)
    {
        __result = aonTimeStampAvailableThres.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "frameSALuma") == 0)
    {
        __result = frameSALuma.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "faceSALuma") == 0)
    {
        __result = faceSALuma.SetValue(&__path[__pos], __value);
    }

    return __result;
}

bool AONSensorAssitType::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);

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

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

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

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

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

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

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

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

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

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

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

    return __result;
}

bool LightDataTriggerDataType::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, "exposureZone") == 0)
    {
        __result = exposureZone.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "initialExposure") == 0)
    {
        if (__index < initialExposureFixedCount)
        {
            ParameterUtils::DoubleToString((double)initialExposure[__index], __value, __size, 0);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < initialExposureFixedCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)initialExposure[i], &__value[__valuePos], (INT32)(__size - __valuePos), 0);
            }
            __result = true;
        }
    }

    return __result;
}

bool LightDataTriggerDataType::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, "exposureZone") == 0)
    {
        __result = exposureZone.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "initialExposure") == 0)
    {
        if (__index < initialExposureFixedCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                initialExposure[__index] = (UINT64)dblValue; 
            }
        }
        else
        {
            const SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __valuePos = 0;

            __index = 0;
            while (__valuePos < __valueLen && __index < initialExposureFixedCount)
            {
                CHAR __valueStr[MAX_SIZE];

                __valuePos += ParameterUtils::GetSubString(&__value[__valuePos], ',', __valueStr, MAX_SIZE);
                __valuePos++;

                const double dblValue = ParameterUtils::StringToDouble(__valueStr, __result);
                if (__result)
                {
                    initialExposure[__index] = (UINT64)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

bool LightDataTriggerDataType::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);

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

    // initialExposure
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("initialExposure", ParameterParserDataType::UInt64, true, false, initialExposureFixedCount));
    }

    return __result;
}

bool LightDataTriggerLevelType::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, "trigger") == 0)
    {
        __result = trigger.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        __result = trigger1Data.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool LightDataTriggerLevelType::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, "trigger") == 0)
    {
        __result = trigger.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        __result = trigger1Data.SetValue(&__path[__pos], __value);
    }

    return __result;
}

bool LightDataTriggerLevelType::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);

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

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

    return __result;
}

bool ExtSensorAssitType::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, "enable") == 0)
    {
        ParameterUtils::DoubleToString((double)enable, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "tables") == 0)
    {
        if (__index < tablesCount)
        {
            __result = tables[__index].GetValue(&__path[__pos], __value, __size);
        }
    }
    else if (PARAMETER_STRCMP(__name, "advExtSensorAssistStartEnable") == 0)
    {
        ParameterUtils::DoubleToString((double)advExtSensorAssistStartEnable, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "spectralLuxDiffThres") == 0)
    {
        __result = spectralLuxDiffThres.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "initDrcGain") == 0)
    {
        ParameterUtils::DoubleToString((double)initDrcGain, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "initDarkboostGain") == 0)
    {
        ParameterUtils::DoubleToString((double)initDarkboostGain, __value, __size);
        __result = true;
    }

    return __result;
}

bool ExtSensorAssitType::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, "enable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enable = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "tables") == 0)
    {
        if (__index < tablesCount)
        {
            __result = tables[__index].SetValue(&__path[__pos], __value);
        }
    }
    else if (PARAMETER_STRCMP(__name, "advExtSensorAssistStartEnable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            advExtSensorAssistStartEnable = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "spectralLuxDiffThres") == 0)
    {
        __result = spectralLuxDiffThres.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "initDrcGain") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            initDrcGain = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "initDarkboostGain") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            initDarkboostGain = (float)dblValue; 
        }
    }

    return __result;
}

bool ExtSensorAssitType::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);

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

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

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

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

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

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

    return __result;
}

bool WarmStartType::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, "enableWarmStart") == 0)
    {
        ParameterUtils::DoubleToString((double)enableWarmStart, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "enableWarmStartCapping") == 0)
    {
        ParameterUtils::DoubleToString((double)enableWarmStartCapping, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "limits") == 0)
    {
        __result = limits.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool WarmStartType::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, "enableWarmStart") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enableWarmStart = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "enableWarmStartCapping") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enableWarmStartCapping = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "limits") == 0)
    {
        __result = limits.SetValue(&__path[__pos], __value);
    }

    return __result;
}

bool WarmStartType::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);

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

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

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

    return __result;
}

bool AECModeStartConfig::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;

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

    if (PARAMETER_STRCMP(__name, "type") == 0)
    {
        ParameterUtils::DoubleToString((double)(UINT32)type, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "exposures") == 0)
    {
        if (__index < exposuresCount)
        {
            ParameterUtils::DoubleToString((double)exposures[__index], __value, __size, 0);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < exposuresCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)exposures[i], &__value[__valuePos], (INT32)(__size - __valuePos), 0);
            }
            __result = true;
        }
    }
    else if (PARAMETER_STRCMP(__name, "drcGain") == 0)
    {
        ParameterUtils::DoubleToString((double)drcGain, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "darkboostGain") == 0)
    {
        ParameterUtils::DoubleToString((double)darkboostGain, __value, __size);
        __result = true;
    }

    return __result;
}

bool AECModeStartConfig::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;

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

    if (PARAMETER_STRCMP(__name, "type") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            type = (aecxglobalelements::AECXStartUpExpType)(UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "exposures") == 0)
    {
        if (__index < exposuresCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                exposures[__index] = (UINT64)dblValue; 
            }
        }
        else
        {
            const SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __valuePos = 0;

            __index = 0;
            while (__valuePos < __valueLen && __index < exposuresCount)
            {
                CHAR __valueStr[MAX_SIZE];

                __valuePos += ParameterUtils::GetSubString(&__value[__valuePos], ',', __valueStr, MAX_SIZE);
                __valuePos++;

                const double dblValue = ParameterUtils::StringToDouble(__valueStr, __result);
                if (__result)
                {
                    exposures[__index] = (UINT64)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }
    else if (PARAMETER_STRCMP(__name, "drcGain") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            drcGain = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "darkboostGain") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            darkboostGain = (float)dblValue; 
        }
    }

    return __result;
}

bool AECModeStartConfig::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;

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

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

    // exposures
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("exposures", ParameterParserDataType::UInt64, true, false, exposuresCount));
    }

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

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

    return __result;
}

bool AECXStartUpType::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, "defaultStart") == 0)
    {
        __result = defaultStart.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "modeStarts") == 0)
    {
        if (__index < modeStartsCount)
        {
            __result = modeStarts[__index].GetValue(&__path[__pos], __value, __size);
        }
    }
    else if (PARAMETER_STRCMP(__name, "warmStart") == 0)
    {
        __result = warmStart.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "extSensorAssitStart") == 0)
    {
        __result = extSensorAssitStart.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "aonSensorAssitStart") == 0)
    {
        __result = aonSensorAssitStart.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool AECXStartUpType::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, "defaultStart") == 0)
    {
        __result = defaultStart.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "modeStarts") == 0)
    {
        if (__index < modeStartsCount)
        {
            __result = modeStarts[__index].SetValue(&__path[__pos], __value);
        }
    }
    else if (PARAMETER_STRCMP(__name, "warmStart") == 0)
    {
        __result = warmStart.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "extSensorAssitStart") == 0)
    {
        __result = extSensorAssitStart.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "aonSensorAssitStart") == 0)
    {
        __result = aonSensorAssitStart.SetValue(&__path[__pos], __value);
    }

    return __result;
}

bool AECXStartUpType::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);
    }

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

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

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

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

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

    return __result;
}

bool AECXStartUpType::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;

    (void)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 AECXStartUpType::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;

    (void)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 AECXStartUpType::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;

    (void)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 AECXStartUpType::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;

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

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

    return __result;
}

bool AECXStartUpType::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;

    (void)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 AECXStartUpType::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;

    (void)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
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AECXStartUpTypeClass::AECXStartUpTypeClass(
    const CHAR* name)
    : ParameterModule(name, MAJOR, MINOR, PATCH, nullptr)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(defaultStart);
    PARAMETER_INITIALIZE(modeStartsCount);
    PARAMETER_INITIALIZE(modeStarts);
    PARAMETER_INITIALIZE(warmStart);
    PARAMETER_INITIALIZE(extSensorAssitStart);
    PARAMETER_INITIALIZE(aonSensorAssitStart);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AECXStartUpTypeClass::AECXStartUpTypeClass(
    const CHAR*       name,
    ModuleData* const moduleData)
    : ParameterModule(name, MAJOR, MINOR, PATCH, moduleData)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(defaultStart);
    PARAMETER_INITIALIZE(modeStarts);
    PARAMETER_INITIALIZE(warmStart);
    PARAMETER_INITIALIZE(extSensorAssitStart);
    PARAMETER_INITIALIZE(aonSensorAssitStart);
}

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


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load CenterWeightedMtrTable
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CenterWeightedMtrTable::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(weight);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0xbe059318b040bcf4;
        entry->ReadSimpleTypeFixedArray<float>(weight, weightFixedCount,
            localParams);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void CenterWeightedMtrTable::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        CenterWeightedMtrTable* arrayPtr = (CenterWeightedMtrTable*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* CenterWeightedMtrTable::AllocArray(
    UINT32 __count)
{
    CenterWeightedMtrTable* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW CenterWeightedMtrTable[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load AONCenterWeightLumaType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AONCenterWeightLumaType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(mtrWightTable);
    PARAMETER_INITIALIZE(frameLumaTargetCount);
    PARAMETER_INITIALIZE(frameLumaTarget);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.UseParent       = false;
        localParams.UseParentOffset = true;
        localParams.NameHash        = 0xe7293303c54653bb;
        mtrWightTable.Load(localParams);
        localParams.NameHash = 0xda6516436cc85fc1;
        entry->ReadStructureArray(frameLumaTarget, frameLumaTargetCount, frameLumaTargetID, 1, localParams, __COUNTER__);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void AONCenterWeightLumaType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        AONCenterWeightLumaType* arrayPtr = (AONCenterWeightLumaType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* AONCenterWeightLumaType::AllocArray(
    UINT32 __count)
{
    AONCenterWeightLumaType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW AONCenterWeightLumaType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load AONTimeStampLimitedType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AONTimeStampLimitedType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(enableTimeStampJudge);
    PARAMETER_INITIALIZE(aonTimeStampThresCount);
    PARAMETER_INITIALIZE(aonTimeStampThres);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0xceffb85d778c2ab1;
        entry->ReadSimpleTypeFixedArray(&enableTimeStampJudge, 1, localParams);
        localParams.NameHash = 0xef48c3d699f7e83b;
        entry->ReadStructureArray(aonTimeStampThres, aonTimeStampThresCount, aonTimeStampThresID, 1, localParams, __COUNTER__);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void AONTimeStampLimitedType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        AONTimeStampLimitedType* arrayPtr = (AONTimeStampLimitedType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* AONTimeStampLimitedType::AllocArray(
    UINT32 __count)
{
    AONTimeStampLimitedType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW AONTimeStampLimitedType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load LumaWeightType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void LumaWeightType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(weight);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0xbe059318b040bcf4;
        entry->ReadSimpleTypeFixedArray<float>(weight, weightFixedCount,
            localParams);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void LumaWeightType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        LumaWeightType* arrayPtr = (LumaWeightType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* LumaWeightType::AllocArray(
    UINT32 __count)
{
    LumaWeightType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW LumaWeightType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load AONSensorAssitType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AONSensorAssitType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(enable);
    PARAMETER_INITIALIZE(enableAonTargetSI);
    PARAMETER_INITIALIZE(enableCapAonLuxIndex);
    PARAMETER_INITIALIZE(aonLuxDiffThres);
    PARAMETER_INITIALIZE(lumaWeight);
    PARAMETER_INITIALIZE(aonSiAdaptRatio);
    PARAMETER_INITIALIZE(aonLuxIndexAdaptOffset);
    PARAMETER_INITIALIZE(aonMaxExpIndex);
    PARAMETER_INITIALIZE(aonTimeStampAvailableThres);
    PARAMETER_INITIALIZE(frameSALuma);
    PARAMETER_INITIALIZE(faceSALuma);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0xb3c00adf8e304e57;
        entry->ReadSimpleTypeFixedArray(&enable, 1, localParams);
        localParams.NameHash = 0xc2ead8aa9179d692;
        entry->ReadSimpleTypeFixedArray(&enableAonTargetSI, 1, localParams);
        localParams.NameHash = 0xc18d09cdbb634354;
        entry->ReadSimpleTypeFixedArray(&enableCapAonLuxIndex, 1, localParams);
        localParams.UseParent       = false;
        localParams.UseParentOffset = true;
        localParams.NameHash        = 0x869ecafaf3d46e6c;
        aonLuxDiffThres.Load(localParams);
        localParams.NameHash        = 0x8d6a01ecaa0b22e5;
        lumaWeight.Load(localParams);
        localParams.NameHash = 0xa9dae9c76172b751;
        entry->ReadSimpleTypeFixedArray(&aonSiAdaptRatio, 1, localParams);
        localParams.NameHash = 0xd6fcab0ba47a0665;
        entry->ReadSimpleTypeFixedArray(&aonLuxIndexAdaptOffset, 1, localParams);
        localParams.NameHash = 0xf0e2709704f8ed34;
        entry->ReadSimpleTypeFixedArray(&aonMaxExpIndex, 1, localParams);
        localParams.NameHash        = 0xf221ea33f8c3af4b;
        aonTimeStampAvailableThres.Load(localParams);
        localParams.NameHash        = 0xd0662ee3cc88c9e3;
        frameSALuma.Load(localParams);
        localParams.NameHash        = 0x8f6eea199e5b4dd0;
        faceSALuma.Load(localParams);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void AONSensorAssitType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        AONSensorAssitType* arrayPtr = (AONSensorAssitType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* AONSensorAssitType::AllocArray(
    UINT32 __count)
{
    AONSensorAssitType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW AONSensorAssitType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load LightDataTriggerDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void LightDataTriggerDataType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(exposureZone);
    PARAMETER_INITIALIZE(initialExposure);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.UseParent       = false;
        localParams.UseParentOffset = true;
        localParams.NameHash        = 0x887d829fd55c97ff;
        exposureZone.Load(localParams);
        localParams.NameHash = 0xbc357ea6b8361491;
        entry->ReadSimpleTypeFixedArray<UINT64>(initialExposure, initialExposureFixedCount,
            localParams);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void LightDataTriggerDataType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        LightDataTriggerDataType* arrayPtr = (LightDataTriggerDataType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* LightDataTriggerDataType::AllocArray(
    UINT32 __count)
{
    LightDataTriggerDataType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW LightDataTriggerDataType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load LightDataTriggerLevelType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void LightDataTriggerLevelType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(trigger);
    PARAMETER_INITIALIZE(trigger1Data);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.UseParent       = false;
        localParams.UseParentOffset = true;
        localParams.NameHash        = 0x9d162d4c268294aa;
        trigger.Load(localParams);
        localParams.NameHash        = 0xb64c9b874efc3775;
        trigger1Data.Load(localParams);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void LightDataTriggerLevelType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        LightDataTriggerLevelType* arrayPtr = (LightDataTriggerLevelType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* LightDataTriggerLevelType::AllocArray(
    UINT32 __count)
{
    LightDataTriggerLevelType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW LightDataTriggerLevelType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load ExtSensorAssitType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void ExtSensorAssitType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(enable);
    PARAMETER_INITIALIZE(tablesCount);
    PARAMETER_INITIALIZE(tables);
    PARAMETER_INITIALIZE(advExtSensorAssistStartEnable);
    PARAMETER_INITIALIZE(spectralLuxDiffThres);
    PARAMETER_INITIALIZE(initDrcGain);
    PARAMETER_INITIALIZE(initDarkboostGain);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0xb3c00adf8e304e57;
        entry->ReadSimpleTypeFixedArray(&enable, 1, localParams);
        localParams.NameHash = 0xad609d9f1de617dd;
        entry->ReadStructureArray(tables, tablesCount, tablesID, 1, localParams, __COUNTER__);
        localParams.NameHash = 0xb30bc4ad4897beb5;
        entry->ReadSimpleTypeFixedArray(&advExtSensorAssistStartEnable, 1, localParams);
        localParams.UseParent       = false;
        localParams.UseParentOffset = true;
        localParams.NameHash        = 0x8946820b14fea327;
        spectralLuxDiffThres.Load(localParams);
        localParams.NameHash = 0xb29623d4a93963ec;
        entry->ReadSimpleTypeFixedArray(&initDrcGain, 1, localParams);
        localParams.NameHash = 0xc53ab1f5bac13893;
        entry->ReadSimpleTypeFixedArray(&initDarkboostGain, 1, localParams);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void ExtSensorAssitType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        ExtSensorAssitType* arrayPtr = (ExtSensorAssitType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* ExtSensorAssitType::AllocArray(
    UINT32 __count)
{
    ExtSensorAssitType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW ExtSensorAssitType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load WarmStartType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void WarmStartType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(enableWarmStart);
    PARAMETER_INITIALIZE(enableWarmStartCapping);
    PARAMETER_INITIALIZE(limits);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0xc5574026d352591b;
        entry->ReadSimpleTypeFixedArray(&enableWarmStart, 1, localParams);
        localParams.NameHash = 0xea05be19655c590c;
        entry->ReadSimpleTypeFixedArray(&enableWarmStartCapping, 1, localParams);
        localParams.UseParent       = false;
        localParams.UseParentOffset = true;
        localParams.NameHash        = 0x8e591c0c483d1e1b;
        limits.Load(localParams);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void WarmStartType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        WarmStartType* arrayPtr = (WarmStartType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* WarmStartType::AllocArray(
    UINT32 __count)
{
    WarmStartType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW WarmStartType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load AECModeStartConfig
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECModeStartConfig::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(type);
    PARAMETER_INITIALIZE(exposuresCount);
    PARAMETER_INITIALIZE(exposures);
    PARAMETER_INITIALIZE(drcGain);
    PARAMETER_INITIALIZE(darkboostGain);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0xd7a23f43d1e0d686;
        entry->ReadEnumFixedArray(&type, 1, localParams);
        localParams.NameHash = 0xafcbbcd831724081;
        entry->ReadSimpleTypeArray(exposures, exposuresCount, exposuresID, 1,
            localParams, __COUNTER__);
        localParams.NameHash = 0xe1df78d8c22ce773;
        entry->ReadSimpleTypeFixedArray(&drcGain, 1, localParams);
        localParams.NameHash = 0xb05e92559ee0d19e;
        entry->ReadSimpleTypeFixedArray(&darkboostGain, 1, localParams);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void AECModeStartConfig::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        AECModeStartConfig* arrayPtr = (AECModeStartConfig*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* AECModeStartConfig::AllocArray(
    UINT32 __count)
{
    AECModeStartConfig* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW AECModeStartConfig[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load AECXStartUpType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXStartUpType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(defaultStart);
    PARAMETER_INITIALIZE(modeStartsCount);
    PARAMETER_INITIALIZE(modeStarts);
    PARAMETER_INITIALIZE(warmStart);
    PARAMETER_INITIALIZE(extSensorAssitStart);
    PARAMETER_INITIALIZE(aonSensorAssitStart);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.UseParent       = false;
        localParams.UseParentOffset = true;
        localParams.NameHash        = 0xe11cd9f365a2599f;
        module_version.Load(localParams);
        localParams.NameHash        = 0xca3106e199a12935;
        parameter_version.Load(localParams);
        localParams.NameHash        = 0x8242d580084d2dbf;
        defaultStart.Load(localParams);
        localParams.NameHash = 0xd001e5bfcdef7a6b;
        entry->ReadStructureArray(modeStarts, modeStartsCount, modeStartsID, 1, localParams, __COUNTER__);
        localParams.NameHash        = 0xc3b0cfed07c12d2d;
        warmStart.Load(localParams);
        localParams.NameHash        = 0xe97455e4dea4da02;
        extSensorAssitStart.Load(localParams);
        localParams.NameHash        = 0xad3306bc9e0ce527;
        aonSensorAssitStart.Load(localParams);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void AECXStartUpType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        AECXStartUpType* arrayPtr = (AECXStartUpType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* AECXStartUpType::AllocArray(
    UINT32 __count)
{
    AECXStartUpType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW AECXStartUpType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load module_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXStartUpType::module_versionStruct::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(major_revision);
    PARAMETER_INITIALIZE(minor_revision);
    PARAMETER_INITIALIZE(incr_revision);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0xcd66249477636693;
        entry->ReadSimpleTypeFixedArray(&major_revision, 1, localParams);
        localParams.NameHash = 0xc5497493137a9c25;
        entry->ReadSimpleTypeFixedArray(&minor_revision, 1, localParams);
        localParams.NameHash = 0xb27b8a668efb2a56;
        entry->ReadSimpleTypeFixedArray(&incr_revision, 1, localParams);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void AECXStartUpType::module_versionStruct::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        module_versionStruct* arrayPtr = (module_versionStruct*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* AECXStartUpType::module_versionStruct::AllocArray(
    UINT32 __count)
{
    module_versionStruct* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW module_versionStruct[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load parameter_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXStartUpType::parameter_versionStruct::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(revision);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0xd594eed07a5650c5;
        entry->ReadStringFixedArray(&revision, 1, localParams, __COUNTER__);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void AECXStartUpType::parameter_versionStruct::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        parameter_versionStruct* arrayPtr = (parameter_versionStruct*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* AECXStartUpType::parameter_versionStruct::AllocArray(
    UINT32 __count)
{
    parameter_versionStruct* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW parameter_versionStruct[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload AONCenterWeightLumaType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AONCenterWeightLumaType::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, frameLumaTarget);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload AONTimeStampLimitedType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AONTimeStampLimitedType::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, aonTimeStampThres);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload AONSensorAssitType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AONSensorAssitType::Unload(ParameterFileSymbolTable* const __table)
{
    aonTimeStampAvailableThres.Unload(__table);
    frameSALuma.Unload(__table);
    faceSALuma.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload ExtSensorAssitType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void ExtSensorAssitType::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, tables);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload AECModeStartConfig
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECModeStartConfig::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, exposures);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload AECXStartUpType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXStartUpType::Unload(ParameterFileSymbolTable* const __table)
{
    parameter_version.Unload(__table);
    defaultStart.Unload(__table);
    for (UINT32 i = 0; modeStarts != nullptr && i < modeStartsCount; i++)
    {
        modeStarts[i].Unload(__table);
    }
    ParameterFileSymbolTable::ReleaseObject(__table, modeStarts);
    extSensorAssitStart.Unload(__table);
    aonSensorAssitStart.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload parameter_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXStartUpType::parameter_versionStruct::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, revision);
}

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// GetModuleName: Returns ParameterModule::Name variable
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
const CHAR* AECXStartUpType::GetModuleName()
{
    return ((AECXStartUpTypeClass*)this)->Name;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// GetModuleName: Returns ParameterModule::NameHash variable
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
UINT64 AECXStartUpType::GetModuleNameHash()
{
    return ((AECXStartUpTypeClass*)this)->NameHash;
}

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

    if (IsModuleMatch(moduleData) && 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 = (AECXStartUpTypeClass*)module;
        }
        else
        {
            cls = PARAMETER_NEW AECXStartUpTypeClass(Name, moduleData);
            cls->SymbolTableID = id;
            defModule->AddModule((ParameterModule*)cls);
        }
    }
    else if (Version.Value != moduleData->Version.Value)
    {
        PARAMETER_LOG_ERROR(moduleData->SetManager, "Unable to create AECXStartUpTypeClass, binary version (%lld) does not match source version (%lld)\n",
            moduleData->Version.Value, Version.Value);
    }
    else
    {
        PARAMETER_LOG_ERROR(moduleData->SetManager, "Unable to create AECXStartUpTypeClass, binary name hash (0x%016llx) does not match source name hash (0x%016llx)\n",
            moduleData->NameHash, NameHash);
    }

    return (ParameterModule*)cls;
}

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

#ifdef PARAMETER_USE_MUTEX
    ParameterMutexLocker lock(Mutex); // Unique LOCK
#endif

    if (!Loaded)
    {
        AECXStartUpTypeClass* 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 & 0x00ffffffU);

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


        ParameterDefinitionElement* _element = nullptr;
        if (table->ModuleDefinitions != nullptr && !table->ModuleDefinitions->empty())
        {
            _element = table->BuildModuleElement(NameHash);
        }

        ParameterLoadParameters parentParams(entry, NameHash, true, true, _element, entry->Position, 0, ParameterFileSymbolTableEntry::LOAD_LIMIT_MAX);
        cls->Load(parentParams);
        PARAMETER_DELETE _element;
        Modified++;
        Loaded = true;
    }

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

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload module data
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXStartUpTypeClass::UnloadModule()
{
#ifdef PARAMETER_USE_MUTEX
    ParameterMutexLocker lock(Mutex); // Unique LOCK
#endif

    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 AECXStartUpTypeClass::Release()
{
    ParameterModule::Release();
}

AECXSTARTUP_NAMESPACE_END
