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

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

#include "aecxflash.h"
#include "parametersetmanager.h"

AECXFLASH_NAMESPACE_BEGIN

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

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

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

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "enable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enable = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "waitCntThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            waitCntThres = (UINT32)dblValue; 
        }
    }

    return __result;
}

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

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

    // 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));
    }

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

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

    return __result;
}

bool FlashTriggerSystemType::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, "trigger1Data") == 0)
    {
        if (__index < trigger1DataCount)
        {
            __result = trigger1Data[__index].GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool FlashTriggerSystemType::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, "trigger1Data") == 0)
    {
        if (__index < trigger1DataCount)
        {
            __result = trigger1Data[__index].SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "smartFlash") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            smartFlash = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "precisionFlash") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            precisionFlash = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "preFlash") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            preFlash = (float)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

    return __result;
}

bool DepthAssistedFlashType::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, "depthAssistWeight") == 0)
    {
        __result = depthAssistWeight.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "outputID") == 0)
    {
        __result = outputID.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "backGroundWeight") == 0)
    {
        __result = backGroundWeight.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "foreGroundWeight") == 0)
    {
        __result = foreGroundWeight.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "confidenceWeight") == 0)
    {
        __result = confidenceWeight.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "usingSnapshotDistanceWeight") == 0)
    {
        ParameterUtils::DoubleToString((double)usingSnapshotDistanceWeight, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "smartflashKDepthFloorPct") == 0)
    {
        ParameterUtils::DoubleToString((double)smartflashKDepthFloorPct, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "preflashSatCntChName") == 0)
    {
        PARAMETER_STRCPY(__value, __size, preflashSatCntChName);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "preflashFrGrdTh") == 0)
    {
        ParameterUtils::DoubleToString((double)preflashFrGrdTh, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "preflashSatCntTh") == 0)
    {
        ParameterUtils::DoubleToString((double)preflashSatCntTh, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "preflashMinFrGrdCnt") == 0)
    {
        ParameterUtils::DoubleToString((double)preflashMinFrGrdCnt, __value, __size, 0);
        __result = true;
    }

    return __result;
}

bool DepthAssistedFlashType::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, "depthAssistWeight") == 0)
    {
        __result = depthAssistWeight.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "outputID") == 0)
    {
        __result = outputID.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "backGroundWeight") == 0)
    {
        __result = backGroundWeight.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "foreGroundWeight") == 0)
    {
        __result = foreGroundWeight.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "confidenceWeight") == 0)
    {
        __result = confidenceWeight.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "usingSnapshotDistanceWeight") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            usingSnapshotDistanceWeight = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "smartflashKDepthFloorPct") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            smartflashKDepthFloorPct = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "preflashSatCntChName") == 0)
    {
        // Cannot modify strings, risk of memory leaks or corruption
    }
    else if (PARAMETER_STRCMP(__name, "preflashFrGrdTh") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            preflashFrGrdTh = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "preflashSatCntTh") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            preflashSatCntTh = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "preflashMinFrGrdCnt") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            preflashMinFrGrdCnt = (INT32)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "distancePCT") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            distancePCT = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "angleShiftPCT") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            angleShiftPCT = (float)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

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

    return __result;
}

bool LEDInlineCalibTargetType::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, "LEDInlineCalibTargetZone") == 0)
    {
        if (__index < LEDInlineCalibTargetZoneCount)
        {
            __result = LEDInlineCalibTargetZone[__index].GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool LEDInlineCalibTargetType::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, "LEDInlineCalibTargetZone") == 0)
    {
        if (__index < LEDInlineCalibTargetZoneCount)
        {
            __result = LEDInlineCalibTargetZone[__index].SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

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

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

    return __result;
}

bool LEDInlineCalibType::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, "triggerIndex") == 0)
    {
        ParameterUtils::DoubleToString((double)triggerIndex, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "refRange") == 0)
    {
        ParameterUtils::DoubleToString((double)refRange, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "refRegionPCT") == 0)
    {
        ParameterUtils::DoubleToString((double)refRegionPCT, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "validRefCount") == 0)
    {
        ParameterUtils::DoubleToString((double)validRefCount, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "distanceRatioMin") == 0)
    {
        ParameterUtils::DoubleToString((double)distanceRatioMin, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "distanceRatioMax") == 0)
    {
        ParameterUtils::DoubleToString((double)distanceRatioMax, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "angleShiftMax") == 0)
    {
        ParameterUtils::DoubleToString((double)angleShiftMax, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "minKneeCnt") == 0)
    {
        ParameterUtils::DoubleToString((double)minKneeCnt, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "maxZoneCnt") == 0)
    {
        ParameterUtils::DoubleToString((double)maxZoneCnt, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "confidencePctThr") == 0)
    {
        ParameterUtils::DoubleToString((double)confidencePctThr, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "numOfFactoringRegions") == 0)
    {
        ParameterUtils::DoubleToString((double)numOfFactoringRegions, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "LEDInlineCalibTarget") == 0)
    {
        __result = LEDInlineCalibTarget.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool LEDInlineCalibType::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, "triggerIndex") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            triggerIndex = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "refRange") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            refRange = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "refRegionPCT") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            refRegionPCT = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "validRefCount") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            validRefCount = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "distanceRatioMin") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            distanceRatioMin = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "distanceRatioMax") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            distanceRatioMax = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "angleShiftMax") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            angleShiftMax = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "minKneeCnt") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minKneeCnt = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "maxZoneCnt") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            maxZoneCnt = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "confidencePctThr") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            confidencePctThr = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "numOfFactoringRegions") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            numOfFactoringRegions = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "LEDInlineCalibTarget") == 0)
    {
        __result = LEDInlineCalibTarget.SetValue(&__path[__pos], __value);
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "enable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enable = (BOOL)dblValue; 
        }
    }

    return __result;
}

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

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

    // 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));
    }

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

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

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "statsNameOff") == 0)
    {
        PARAMETER_STRCPY(__value, __size, statsNameOff);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "statsNameLow") == 0)
    {
        PARAMETER_STRCPY(__value, __size, statsNameLow);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "absoluteThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)absoluteThreshold, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "differenceThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)differenceThreshold, __value, __size);
        __result = true;
    }

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "statsNameOff") == 0)
    {
        // Cannot modify strings, risk of memory leaks or corruption
    }
    else if (PARAMETER_STRCMP(__name, "statsNameLow") == 0)
    {
        // Cannot modify strings, risk of memory leaks or corruption
    }
    else if (PARAMETER_STRCMP(__name, "absoluteThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            absoluteThreshold = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "differenceThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            differenceThreshold = (float)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

    return __result;
}

bool FlashStatsPreprocessingType::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, "stopMeteringYLevel") == 0)
    {
        __result = stopMeteringYLevel.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "stopMeteringYSaturation") == 0)
    {
        __result = stopMeteringYSaturation.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "minLumaSource") == 0)
    {
        ParameterUtils::DoubleToString((double)minLumaSource, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "minLumaThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)minLumaThreshold, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "minLumaAdjust") == 0)
    {
        __result = minLumaAdjust.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool FlashStatsPreprocessingType::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, "stopMeteringYLevel") == 0)
    {
        __result = stopMeteringYLevel.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "stopMeteringYSaturation") == 0)
    {
        __result = stopMeteringYSaturation.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "minLumaSource") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minLumaSource = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "minLumaThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minLumaThreshold = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "minLumaAdjust") == 0)
    {
        __result = minLumaAdjust.SetValue(&__path[__pos], __value);
    }

    return __result;
}

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

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

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

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

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

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

    return __result;
}

bool AECXLEDMixCalibType::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, "indexMix") == 0)
    {
        ParameterUtils::DoubleToString((double)indexMix, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "indexPower") == 0)
    {
        ParameterUtils::DoubleToString((double)indexPower, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "enableScreening") == 0)
    {
        ParameterUtils::DoubleToString((double)enableScreening, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "RGOKRange") == 0)
    {
        __result = RGOKRange.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "BGOKRange") == 0)
    {
        __result = BGOKRange.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "fixedExposure") == 0)
    {
        ParameterUtils::DoubleToString((double)fixedExposure, __value, __size, 0);
        __result = true;
    }

    return __result;
}

bool AECXLEDMixCalibType::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, "indexMix") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            indexMix = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "indexPower") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            indexPower = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "enableScreening") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enableScreening = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "RGOKRange") == 0)
    {
        __result = RGOKRange.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "BGOKRange") == 0)
    {
        __result = BGOKRange.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "fixedExposure") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            fixedExposure = (UINT64)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

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

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "LED1Setting") == 0)
    {
        ParameterUtils::DoubleToString((double)LED1Setting, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "LED2Setting") == 0)
    {
        ParameterUtils::DoubleToString((double)LED2Setting, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "RGRatio") == 0)
    {
        ParameterUtils::DoubleToString((double)RGRatio, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "BGRatio") == 0)
    {
        ParameterUtils::DoubleToString((double)BGRatio, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "flux") == 0)
    {
        ParameterUtils::DoubleToString((double)flux, __value, __size);
        __result = true;
    }

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "LED1Setting") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            LED1Setting = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "LED2Setting") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            LED2Setting = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "RGRatio") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            RGRatio = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "BGRatio") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            BGRatio = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "flux") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            flux = (float)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

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

    return __result;
}

bool AECXLEDMeasurementType::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, "startExposure") == 0)
    {
        ParameterUtils::DoubleToString((double)startExposure, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "frameErrAllowance") == 0)
    {
        ParameterUtils::DoubleToString((double)frameErrAllowance, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "numOfFrames") == 0)
    {
        ParameterUtils::DoubleToString((double)numOfFrames, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "maxNumOfFrames") == 0)
    {
        ParameterUtils::DoubleToString((double)maxNumOfFrames, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "maxNumOfExtraAttempts") == 0)
    {
        ParameterUtils::DoubleToString((double)maxNumOfExtraAttempts, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "maxFrameConvTimeOut") == 0)
    {
        ParameterUtils::DoubleToString((double)maxFrameConvTimeOut, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "enableCornerSampleScreen") == 0)
    {
        ParameterUtils::DoubleToString((double)enableCornerSampleScreen, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "refStatsCalculatorID") == 0)
    {
        __result = refStatsCalculatorID.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool AECXLEDMeasurementType::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, "startExposure") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            startExposure = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "frameErrAllowance") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            frameErrAllowance = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "numOfFrames") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            numOfFrames = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "maxNumOfFrames") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            maxNumOfFrames = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "maxNumOfExtraAttempts") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            maxNumOfExtraAttempts = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "maxFrameConvTimeOut") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            maxFrameConvTimeOut = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "enableCornerSampleScreen") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enableCornerSampleScreen = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "refStatsCalculatorID") == 0)
    {
        __result = refStatsCalculatorID.SetValue(&__path[__pos], __value);
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

    return __result;
}

bool LEDMatchTableType::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, "enableDerating") == 0)
    {
        ParameterUtils::DoubleToString((double)enableDerating, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "dualLEDIntersectSlope") == 0)
    {
        ParameterUtils::DoubleToString((double)dualLEDIntersectSlope, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "countPower") == 0)
    {
        ParameterUtils::DoubleToString((double)countPower, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "countMix") == 0)
    {
        ParameterUtils::DoubleToString((double)countMix, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "LEDMeasConfig") == 0)
    {
        __result = LEDMeasConfig.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "table") == 0)
    {
        if (__index < tableCount)
        {
            __result = table[__index].GetValue(&__path[__pos], __value, __size);
        }
    }
    else if (PARAMETER_STRCMP(__name, "tableCalibration") == 0)
    {
        if (__index < tableCalibrationCount)
        {
            __result = tableCalibration[__index].GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool LEDMatchTableType::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, "enableDerating") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enableDerating = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "dualLEDIntersectSlope") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            dualLEDIntersectSlope = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "countPower") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            countPower = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "countMix") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            countMix = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "LEDMeasConfig") == 0)
    {
        __result = LEDMeasConfig.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "table") == 0)
    {
        if (__index < tableCount)
        {
            __result = table[__index].SetValue(&__path[__pos], __value);
        }
    }
    else if (PARAMETER_STRCMP(__name, "tableCalibration") == 0)
    {
        if (__index < tableCalibrationCount)
        {
            __result = tableCalibration[__index].SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

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

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

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

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

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

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

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

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

    return __result;
}

bool AECXFlashType::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, "LEDMatching") == 0)
    {
        __result = LEDMatching.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "preflashEnterExit") == 0)
    {
        __result = preflashEnterExit.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "preflashStatsPreProcessing") == 0)
    {
        __result = preflashStatsPreProcessing.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "preflashEvControl") == 0)
    {
        __result = preflashEvControl.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "LEDInlineCalibration") == 0)
    {
        __result = LEDInlineCalibration.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "depthAssistedFlash") == 0)
    {
        __result = depthAssistedFlash.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "preflashFDHandle") == 0)
    {
        __result = preflashFDHandle.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool AECXFlashType::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, "LEDMatching") == 0)
    {
        __result = LEDMatching.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "preflashEnterExit") == 0)
    {
        __result = preflashEnterExit.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "preflashStatsPreProcessing") == 0)
    {
        __result = preflashStatsPreProcessing.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "preflashEvControl") == 0)
    {
        __result = preflashEvControl.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "LEDInlineCalibration") == 0)
    {
        __result = LEDInlineCalibration.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "depthAssistedFlash") == 0)
    {
        __result = depthAssistedFlash.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "preflashFDHandle") == 0)
    {
        __result = preflashFDHandle.SetValue(&__path[__pos], __value);
    }

    return __result;
}

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

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

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

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

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

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

    return __result;
}


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Default Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AECXFlashTypeClass::AECXFlashTypeClass(
    const CHAR* const name)
    : ParameterModule(name, MAJOR, MINOR, PATCH, nullptr)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(LEDMatching);
    PARAMETER_INITIALIZE(preflashEnterExit);
    PARAMETER_INITIALIZE(preflashStatsPreProcessing);
    PARAMETER_INITIALIZE(preflashEvControl);
    PARAMETER_INITIALIZE(LEDInlineCalibration);
    PARAMETER_INITIALIZE(depthAssistedFlash);
    PARAMETER_INITIALIZE(preflashFDHandle);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AECXFlashTypeClass::AECXFlashTypeClass(
    const CHAR* const name,
    ModuleData* const moduleData)
    : ParameterModule(name, MAJOR, MINOR, PATCH, moduleData)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(LEDMatching);
    PARAMETER_INITIALIZE(preflashEnterExit);
    PARAMETER_INITIALIZE(preflashStatsPreProcessing);
    PARAMETER_INITIALIZE(preflashEvControl);
    PARAMETER_INITIALIZE(LEDInlineCalibration);
    PARAMETER_INITIALIZE(depthAssistedFlash);
    PARAMETER_INITIALIZE(preflashFDHandle);
}

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

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

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

    PARAMETER_INITIALIZE(enable);
    PARAMETER_INITIALIZE(waitCntThres);

    SYMBOL_TABLE_ENTRY_READ(entry, result, enable, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, waitCntThres, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(trigger2);
    PARAMETER_INITIALIZE(triggerData);

    result = trigger2.Load(entry, alignment);
    if (result)
    {
        result = triggerData.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(trigger1Lux);
    PARAMETER_INITIALIZE(trigger2Data);

    result = trigger1Lux.Load(entry, alignment);

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

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

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

    return result;
}

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

    PARAMETER_INITIALIZE(trigger1Data);


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

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

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

    return result;
}

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

    PARAMETER_INITIALIZE(backGround);
    PARAMETER_INITIALIZE(foreGround);

    SYMBOL_TABLE_ENTRY_READ(entry, result, backGround, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, foreGround, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(smartFlash);
    PARAMETER_INITIALIZE(precisionFlash);
    PARAMETER_INITIALIZE(preFlash);

    SYMBOL_TABLE_ENTRY_READ(entry, result, smartFlash, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, precisionFlash, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, preFlash, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(enable);
    PARAMETER_INITIALIZE(depthAssistWeight);
    PARAMETER_INITIALIZE(outputID);
    PARAMETER_INITIALIZE(backGroundWeight);
    PARAMETER_INITIALIZE(foreGroundWeight);
    PARAMETER_INITIALIZE(confidenceWeight);
    PARAMETER_INITIALIZE(usingSnapshotDistanceWeight);
    PARAMETER_INITIALIZE(smartflashKDepthFloorPct);
    PARAMETER_INITIALIZE(preflashSatCntChName);
    PARAMETER_INITIALIZE(preflashFrGrdTh);
    PARAMETER_INITIALIZE(preflashSatCntTh);
    PARAMETER_INITIALIZE(preflashMinFrGrdCnt);

    SYMBOL_TABLE_ENTRY_READ(entry, result, enable, alignment)
    if (result)
    {
        result = depthAssistWeight.Load(entry, alignment);
    }
    if (result)
    {
        result = outputID.Load(entry, alignment);
    }
    if (result)
    {
        result = backGroundWeight.Load(entry, alignment);
    }
    if (result)
    {
        result = foreGroundWeight.Load(entry, alignment);
    }
    if (result)
    {
        result = confidenceWeight.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, usingSnapshotDistanceWeight, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, smartflashKDepthFloorPct, alignment)

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

    return result;
}

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

    PARAMETER_INITIALIZE(distancePCT);
    PARAMETER_INITIALIZE(angleShiftPCT);

    SYMBOL_TABLE_ENTRY_READ(entry, result, distancePCT, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, angleShiftPCT, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(zoneTrigger);
    PARAMETER_INITIALIZE(zoneData);

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

    return result;
}

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

    PARAMETER_INITIALIZE(LEDInlineCalibTargetZone);


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

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

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

    return result;
}

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

    PARAMETER_INITIALIZE(triggerIndex);
    PARAMETER_INITIALIZE(refRange);
    PARAMETER_INITIALIZE(refRegionPCT);
    PARAMETER_INITIALIZE(validRefCount);
    PARAMETER_INITIALIZE(distanceRatioMin);
    PARAMETER_INITIALIZE(distanceRatioMax);
    PARAMETER_INITIALIZE(angleShiftMax);
    PARAMETER_INITIALIZE(minKneeCnt);
    PARAMETER_INITIALIZE(maxZoneCnt);
    PARAMETER_INITIALIZE(confidencePctThr);
    PARAMETER_INITIALIZE(numOfFactoringRegions);
    PARAMETER_INITIALIZE(LEDInlineCalibTarget);

    SYMBOL_TABLE_ENTRY_READ(entry, result, triggerIndex, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, refRange, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, refRegionPCT, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, validRefCount, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, distanceRatioMin, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, distanceRatioMax, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, angleShiftMax, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, minKneeCnt, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, maxZoneCnt, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, confidencePctThr, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, numOfFactoringRegions, alignment)
    if (result)
    {
        result = LEDInlineCalibTarget.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(enable);

    SYMBOL_TABLE_ENTRY_READ(entry, result, enable, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(saturationRatioThreshold);
    PARAMETER_INITIALIZE(adjustmentFactor);

    result = saturationRatioThreshold.Load(entry, alignment);
    if (result)
    {
        result = adjustmentFactor.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(statsNameOff);
    PARAMETER_INITIALIZE(statsNameLow);
    PARAMETER_INITIALIZE(absoluteThreshold);
    PARAMETER_INITIALIZE(differenceThreshold);


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

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

    return result;
}

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

    PARAMETER_INITIALIZE(stopMeteringYLevel);
    PARAMETER_INITIALIZE(stopMeteringYSaturation);
    PARAMETER_INITIALIZE(minLumaSource);
    PARAMETER_INITIALIZE(minLumaThreshold);
    PARAMETER_INITIALIZE(minLumaAdjust);

    result = stopMeteringYLevel.Load(entry, alignment);
    if (result)
    {
        result = stopMeteringYSaturation.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, minLumaSource, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, minLumaThreshold, alignment)
    if (result)
    {
        result = minLumaAdjust.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(minFrameSkip);
    PARAMETER_INITIALIZE(maxFrameSkip);
    PARAMETER_INITIALIZE(FPSRange);

    result = minFrameSkip.Load(entry, alignment);
    if (result)
    {
        result = maxFrameSkip.Load(entry, alignment);
    }
    if (result)
    {
        result = FPSRange.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(dynamicEnterSkip);
    PARAMETER_INITIALIZE(dynamicExitSkip);

    result = dynamicEnterSkip.Load(entry, alignment);
    if (result)
    {
        result = dynamicExitSkip.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(indexMix);
    PARAMETER_INITIALIZE(indexPower);
    PARAMETER_INITIALIZE(enableScreening);
    PARAMETER_INITIALIZE(RGOKRange);
    PARAMETER_INITIALIZE(BGOKRange);
    PARAMETER_INITIALIZE(fixedExposure);

    SYMBOL_TABLE_ENTRY_READ(entry, result, indexMix, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, indexPower, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, enableScreening, alignment)
    if (result)
    {
        result = RGOKRange.Load(entry, alignment);
    }
    if (result)
    {
        result = BGOKRange.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, fixedExposure, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(LED1Setting);
    PARAMETER_INITIALIZE(LED2Setting);
    PARAMETER_INITIALIZE(RGRatio);
    PARAMETER_INITIALIZE(BGRatio);
    PARAMETER_INITIALIZE(flux);

    SYMBOL_TABLE_ENTRY_READ(entry, result, LED1Setting, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, LED2Setting, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, RGRatio, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, BGRatio, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, flux, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(RG);
    PARAMETER_INITIALIZE(BG);

    SYMBOL_TABLE_ENTRY_READ(entry, result, RG, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, BG, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(startExposure);
    PARAMETER_INITIALIZE(frameErrAllowance);
    PARAMETER_INITIALIZE(numOfFrames);
    PARAMETER_INITIALIZE(maxNumOfFrames);
    PARAMETER_INITIALIZE(maxNumOfExtraAttempts);
    PARAMETER_INITIALIZE(maxFrameConvTimeOut);
    PARAMETER_INITIALIZE(enableCornerSampleScreen);
    PARAMETER_INITIALIZE(refStatsCalculatorID);

    SYMBOL_TABLE_ENTRY_READ(entry, result, startExposure, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, frameErrAllowance, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, numOfFrames, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, maxNumOfFrames, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, maxNumOfExtraAttempts, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, maxFrameConvTimeOut, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, enableCornerSampleScreen, alignment)
    if (result)
    {
        result = refStatsCalculatorID.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(enableDerating);
    PARAMETER_INITIALIZE(dualLEDIntersectSlope);
    PARAMETER_INITIALIZE(countPower);
    PARAMETER_INITIALIZE(countMix);
    PARAMETER_INITIALIZE(LEDMeasConfig);
    PARAMETER_INITIALIZE(table);
    PARAMETER_INITIALIZE(tableCalibration);

    SYMBOL_TABLE_ENTRY_READ(entry, result, enableDerating, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, dualLEDIntersectSlope, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, countPower, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, countMix, alignment)
    if (result)
    {
        result = LEDMeasConfig.Load(entry, alignment);
    }

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

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

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

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

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

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

    return result;
}

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

    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(LEDMatching);
    PARAMETER_INITIALIZE(preflashEnterExit);
    PARAMETER_INITIALIZE(preflashStatsPreProcessing);
    PARAMETER_INITIALIZE(preflashEvControl);
    PARAMETER_INITIALIZE(LEDInlineCalibration);
    PARAMETER_INITIALIZE(depthAssistedFlash);
    PARAMETER_INITIALIZE(preflashFDHandle);

    result = module_version.Load(entry, alignment);
    if (result)
    {
        result = parameter_version.Load(entry, alignment);
    }
    if (result)
    {
        result = LEDMatching.Load(entry, alignment);
    }
    if (result)
    {
        result = preflashEnterExit.Load(entry, alignment);
    }
    if (result)
    {
        result = preflashStatsPreProcessing.Load(entry, alignment);
    }
    if (result)
    {
        result = preflashEvControl.Load(entry, alignment);
    }
    if (result)
    {
        result = LEDInlineCalibration.Load(entry, alignment);
    }
    if (result)
    {
        result = depthAssistedFlash.Load(entry, alignment);
    }
    if (result)
    {
        result = preflashFDHandle.Load(entry, alignment);
    }

    return result;
}

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

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

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

    return result;
}

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

    PARAMETER_INITIALIZE(revision);


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

    return result;
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload FlashTriggerSystemType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FlashTriggerSystemType::Unload(ParameterFileSymbolTable* const __table)
{
    for (UINT32 i = 0; i < trigger1DataCount; i++)
    {
        trigger1Data[i].Unload(__table);
    }
    if (__table != nullptr && __table->ReleaseDupObject(trigger1Data))
    {
        PARAMETER_DELETE[] trigger1Data;
    }
    trigger1Data = nullptr;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload DepthAssistedFlashType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void DepthAssistedFlashType::Unload(ParameterFileSymbolTable* const __table)
{
    backGroundWeight.Unload(__table);
    foreGroundWeight.Unload(__table);
    confidenceWeight.Unload(__table);
    if (__table != nullptr && __table->ReleaseDupObject(preflashSatCntChName))
    {
        PARAMETER_DELETE[] preflashSatCntChName;
    }
    preflashSatCntChName = nullptr;
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload LEDInlineCalibType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void LEDInlineCalibType::Unload(ParameterFileSymbolTable* const __table)
{
    LEDInlineCalibTarget.Unload(__table);
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload FlashStatsPreprocessingType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FlashStatsPreprocessingType::Unload(ParameterFileSymbolTable* const __table)
{
    stopMeteringYLevel.Unload(__table);
    stopMeteringYSaturation.Unload(__table);
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload AECXFlashType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXFlashType::Unload(ParameterFileSymbolTable* const __table)
{
    parameter_version.Unload(__table);
    LEDMatching.Unload(__table);
    preflashStatsPreProcessing.Unload(__table);
    LEDInlineCalibration.Unload(__table);
    depthAssistedFlash.Unload(__table);
}

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

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

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

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

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

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

    return (ParameterModule*)cls;
}

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

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

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

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

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

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

    return result;
}

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

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

AECXFLASH_NAMESPACE_END
