////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// 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  aecir.cpp
/// @brief Auto-generated Chromatix parameter file
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#include "aecir.h"
#include "parametersetmanager.h"

AECIR_NAMESPACE_BEGIN

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// SetValue/GetValue Functions
/// Gets or sets the requested value
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool VisiblelightDetectType::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, "visibleLightCntThres") == 0)
    {
        ParameterUtils::DoubleToString((double)visibleLightCntThres, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "visibleLightTargetThres") == 0)
    {
        ParameterUtils::DoubleToString((double)visibleLightTargetThres, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irLightRangeBG") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)irLightRangeBG[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < 2; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)irLightRangeBG[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }
    else if (PARAMETER_STRCMP(__name, "irLightRangeRG") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)irLightRangeRG[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < 2; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)irLightRangeRG[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }
    else if (PARAMETER_STRCMP(__name, "irLightRangeRB") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)irLightRangeRB[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < 2; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)irLightRangeRB[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }
    else if (PARAMETER_STRCMP(__name, "wTable") == 0)
    {
        __result = wTable.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool VisiblelightDetectType::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, "visibleLightCntThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            visibleLightCntThres = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "visibleLightTargetThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            visibleLightTargetThres = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irLightRangeBG") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                irLightRangeBG[__index] = (float)dblValue; 
            }
        }
        else
        {
            SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __pos = 0;

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

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

                const double dblValue = ParameterUtils::StringToDouble(__valueStr, __result);
                if (__result)
                {
                    irLightRangeBG[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }
    else if (PARAMETER_STRCMP(__name, "irLightRangeRG") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                irLightRangeRG[__index] = (float)dblValue; 
            }
        }
        else
        {
            SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __pos = 0;

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

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

                const double dblValue = ParameterUtils::StringToDouble(__valueStr, __result);
                if (__result)
                {
                    irLightRangeRG[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }
    else if (PARAMETER_STRCMP(__name, "irLightRangeRB") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                irLightRangeRB[__index] = (float)dblValue; 
            }
        }
        else
        {
            SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __pos = 0;

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

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

                const double dblValue = ParameterUtils::StringToDouble(__valueStr, __result);
                if (__result)
                {
                    irLightRangeRB[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }
    else if (PARAMETER_STRCMP(__name, "wTable") == 0)
    {
        __result = wTable.SetValue(&__path[__pos], __value);
    }

    return __result;
}

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

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

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

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

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

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

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

    return __result;
}

bool VisiblelightDetectType::wTableStruct::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, "weights") == 0)
    {
        if (__index < 256)
        {
            ParameterUtils::DoubleToString((double)weights[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < 256; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)weights[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool VisiblelightDetectType::wTableStruct::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, "weights") == 0)
    {
        if (__index < 256)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                weights[__index] = (float)dblValue; 
            }
        }
        else
        {
            SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __pos = 0;

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

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

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

    return __result;
}

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

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

    return __result;
}

bool WeightTableType::centerWeightedStruct::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, "weights") == 0)
    {
        if (__index < 256)
        {
            ParameterUtils::DoubleToString((double)weights[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < 256; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)weights[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool WeightTableType::centerWeightedStruct::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, "weights") == 0)
    {
        if (__index < 256)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                weights[__index] = (float)dblValue; 
            }
        }
        else
        {
            SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __pos = 0;

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

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

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

    return __result;
}

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

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

    return __result;
}

bool WeightTableType::LumaWeightedStruct::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, "weights") == 0)
    {
        if (__index < 64)
        {
            ParameterUtils::DoubleToString((double)weights[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < 64; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)weights[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool WeightTableType::LumaWeightedStruct::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, "weights") == 0)
    {
        if (__index < 64)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                weights[__index] = (float)dblValue; 
            }
        }
        else
        {
            SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __pos = 0;

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

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

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

    return __result;
}

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

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

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

    return __result;
}

bool irShdrDiffTableType::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, "minIRDiff") == 0)
    {
        ParameterUtils::DoubleToString((double)minIRDiff, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "maxIRDiff") == 0)
    {
        ParameterUtils::DoubleToString((double)maxIRDiff, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "expIdxTh1") == 0)
    {
        ParameterUtils::DoubleToString((double)expIdxTh1, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "expIdxTh2") == 0)
    {
        ParameterUtils::DoubleToString((double)expIdxTh2, __value, __size);
        __result = true;
    }

    return __result;
}

bool irShdrDiffTableType::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, "minIRDiff") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minIRDiff = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "maxIRDiff") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            maxIRDiff = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "expIdxTh1") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            expIdxTh1 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "expIdxTh2") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            expIdxTh2 = (float)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

    return __result;
}

bool IRShdrType::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, "fixExpIdx") == 0)
    {
        ParameterUtils::DoubleToString((double)fixExpIdx, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "ALSdarkThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)ALSdarkThreshold, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "ALSbrightThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)ALSbrightThreshold, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "ALSchangeModeCountTH") == 0)
    {
        ParameterUtils::DoubleToString((double)ALSchangeModeCountTH, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "expIdxSettledTH") == 0)
    {
        ParameterUtils::DoubleToString((double)expIdxSettledTH, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "expIdxSettledCountTH") == 0)
    {
        ParameterUtils::DoubleToString((double)expIdxSettledCountTH, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "initialIR") == 0)
    {
        ParameterUtils::DoubleToString((double)initialIR, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "reachBoundaryTH") == 0)
    {
        ParameterUtils::DoubleToString((double)reachBoundaryTH, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "convergeSpeed") == 0)
    {
        ParameterUtils::DoubleToString((double)convergeSpeed, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irTarget") == 0)
    {
        ParameterUtils::DoubleToString((double)irTarget, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irTargetSettledTH") == 0)
    {
        ParameterUtils::DoubleToString((double)irTargetSettledTH, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irSettledCountTH") == 0)
    {
        ParameterUtils::DoubleToString((double)irSettledCountTH, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irMaskpercentage") == 0)
    {
        ParameterUtils::DoubleToString((double)irMaskpercentage, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "minIRIntensity") == 0)
    {
        ParameterUtils::DoubleToString((double)minIRIntensity, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "maxIRIntensity") == 0)
    {
        ParameterUtils::DoubleToString((double)maxIRIntensity, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irALSDiffTH") == 0)
    {
        ParameterUtils::DoubleToString((double)irALSDiffTH, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irALSDiffCountTH") == 0)
    {
        ParameterUtils::DoubleToString((double)irALSDiffCountTH, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irExpIdxDiffTH") == 0)
    {
        ParameterUtils::DoubleToString((double)irExpIdxDiffTH, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irExpIdxDiffWaitTimeTH") == 0)
    {
        ParameterUtils::DoubleToString((double)irExpIdxDiffWaitTimeTH, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irTimingTH") == 0)
    {
        ParameterUtils::DoubleToString((double)irTimingTH, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irDiffLength") == 0)
    {
        ParameterUtils::DoubleToString((double)irDiffLength, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irDiffTable") == 0)
    {
        __result = irDiffTable.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "TMTargetForIR") == 0)
    {
        ParameterUtils::DoubleToString((double)TMTargetForIR, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "SEFHistRefTargetForIR") == 0)
    {
        ParameterUtils::DoubleToString((double)SEFHistRefTargetForIR, __value, __size);
        __result = true;
    }

    return __result;
}

bool IRShdrType::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, "fixExpIdx") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            fixExpIdx = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "ALSdarkThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            ALSdarkThreshold = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "ALSbrightThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            ALSbrightThreshold = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "ALSchangeModeCountTH") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            ALSchangeModeCountTH = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "expIdxSettledTH") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            expIdxSettledTH = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "expIdxSettledCountTH") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            expIdxSettledCountTH = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "initialIR") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            initialIR = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "reachBoundaryTH") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            reachBoundaryTH = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "convergeSpeed") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            convergeSpeed = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irTarget") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            irTarget = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irTargetSettledTH") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            irTargetSettledTH = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irSettledCountTH") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            irSettledCountTH = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irMaskpercentage") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            irMaskpercentage = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "minIRIntensity") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minIRIntensity = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "maxIRIntensity") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            maxIRIntensity = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irALSDiffTH") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            irALSDiffTH = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irALSDiffCountTH") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            irALSDiffCountTH = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irExpIdxDiffTH") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            irExpIdxDiffTH = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irExpIdxDiffWaitTimeTH") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            irExpIdxDiffWaitTimeTH = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irTimingTH") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            irTimingTH = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irDiffLength") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            irDiffLength = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irDiffTable") == 0)
    {
        __result = irDiffTable.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "TMTargetForIR") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            TMTargetForIR = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "SEFHistRefTargetForIR") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            SEFHistRefTargetForIR = (float)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    return __result;
}

bool irDiffTableType::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, "minIRDiff") == 0)
    {
        ParameterUtils::DoubleToString((double)minIRDiff, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "maxIRDiff") == 0)
    {
        ParameterUtils::DoubleToString((double)maxIRDiff, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "expIdxTh1") == 0)
    {
        ParameterUtils::DoubleToString((double)expIdxTh1, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "expIdxTh2") == 0)
    {
        ParameterUtils::DoubleToString((double)expIdxTh2, __value, __size);
        __result = true;
    }

    return __result;
}

bool irDiffTableType::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, "minIRDiff") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minIRDiff = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "maxIRDiff") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            maxIRDiff = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "expIdxTh1") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            expIdxTh1 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "expIdxTh2") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            expIdxTh2 = (float)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

    return __result;
}

bool IRLinearType::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, "fixExpIdx") == 0)
    {
        ParameterUtils::DoubleToString((double)fixExpIdx, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "ALSdarkThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)ALSdarkThreshold, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "ALSbrightThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)ALSbrightThreshold, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "ALSchangeModeCountTH") == 0)
    {
        ParameterUtils::DoubleToString((double)ALSchangeModeCountTH, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "expIdxSettledTH") == 0)
    {
        ParameterUtils::DoubleToString((double)expIdxSettledTH, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "expIdxSettledCountTH") == 0)
    {
        ParameterUtils::DoubleToString((double)expIdxSettledCountTH, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "initialIR") == 0)
    {
        ParameterUtils::DoubleToString((double)initialIR, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "reachBoundaryTH") == 0)
    {
        ParameterUtils::DoubleToString((double)reachBoundaryTH, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "convergeSpeed") == 0)
    {
        ParameterUtils::DoubleToString((double)convergeSpeed, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irTarget") == 0)
    {
        ParameterUtils::DoubleToString((double)irTarget, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irTargetSettledTH") == 0)
    {
        ParameterUtils::DoubleToString((double)irTargetSettledTH, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irSettledCountTH") == 0)
    {
        ParameterUtils::DoubleToString((double)irSettledCountTH, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irMaskpercentage") == 0)
    {
        ParameterUtils::DoubleToString((double)irMaskpercentage, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "minIRIntensity") == 0)
    {
        ParameterUtils::DoubleToString((double)minIRIntensity, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "maxIRIntensity") == 0)
    {
        ParameterUtils::DoubleToString((double)maxIRIntensity, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irALSDiffTH") == 0)
    {
        ParameterUtils::DoubleToString((double)irALSDiffTH, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irALSDiffCountTH") == 0)
    {
        ParameterUtils::DoubleToString((double)irALSDiffCountTH, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irExpIdxDiffTH") == 0)
    {
        ParameterUtils::DoubleToString((double)irExpIdxDiffTH, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irExpIdxDiffWaitTimeTH") == 0)
    {
        ParameterUtils::DoubleToString((double)irExpIdxDiffWaitTimeTH, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irTimingTH") == 0)
    {
        ParameterUtils::DoubleToString((double)irTimingTH, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irDiffLength") == 0)
    {
        ParameterUtils::DoubleToString((double)irDiffLength, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "irDiffTable") == 0)
    {
        __result = irDiffTable.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "luxLumaTargetForIR") == 0)
    {
        ParameterUtils::DoubleToString((double)luxLumaTargetForIR, __value, __size);
        __result = true;
    }

    return __result;
}

bool IRLinearType::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, "fixExpIdx") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            fixExpIdx = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "ALSdarkThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            ALSdarkThreshold = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "ALSbrightThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            ALSbrightThreshold = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "ALSchangeModeCountTH") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            ALSchangeModeCountTH = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "expIdxSettledTH") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            expIdxSettledTH = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "expIdxSettledCountTH") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            expIdxSettledCountTH = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "initialIR") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            initialIR = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "reachBoundaryTH") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            reachBoundaryTH = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "convergeSpeed") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            convergeSpeed = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irTarget") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            irTarget = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irTargetSettledTH") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            irTargetSettledTH = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irSettledCountTH") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            irSettledCountTH = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irMaskpercentage") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            irMaskpercentage = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "minIRIntensity") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minIRIntensity = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "maxIRIntensity") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            maxIRIntensity = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irALSDiffTH") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            irALSDiffTH = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irALSDiffCountTH") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            irALSDiffCountTH = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irExpIdxDiffTH") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            irExpIdxDiffTH = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irExpIdxDiffWaitTimeTH") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            irExpIdxDiffWaitTimeTH = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irTimingTH") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            irTimingTH = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irDiffLength") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            irDiffLength = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "irDiffTable") == 0)
    {
        __result = irDiffTable.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "luxLumaTargetForIR") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            luxLumaTargetForIR = (float)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

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

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

    return __result;
}

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


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Default Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AECIRTypeClass::AECIRTypeClass(
    const CHAR* const name)
    : ParameterModule(name, MAJOR, MINOR, PATCH, nullptr)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(IrLinear);
    PARAMETER_INITIALIZE(IrShdr);
    PARAMETER_INITIALIZE(IrMtr);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AECIRTypeClass::AECIRTypeClass(
    const CHAR* const name,
    ModuleData* const moduleData)
    : ParameterModule(name, MAJOR, MINOR, PATCH, moduleData)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(IrLinear);
    PARAMETER_INITIALIZE(IrShdr);
    PARAMETER_INITIALIZE(IrMtr);
}

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

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

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

    PARAMETER_INITIALIZE(enable);
    PARAMETER_INITIALIZE(visibleLightCntThres);
    PARAMETER_INITIALIZE(visibleLightTargetThres);
    PARAMETER_INITIALIZE(irLightRangeBG);
    PARAMETER_INITIALIZE(irLightRangeRG);
    PARAMETER_INITIALIZE(irLightRangeRB);
    PARAMETER_INITIALIZE(wTable);

    SYMBOL_TABLE_ENTRY_READ(entry, result, enable, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, visibleLightCntThres, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, visibleLightTargetThres, alignment)
    if (result)
    {
        result = entry->ReadArray(irLightRangeBG, 2, alignment);
    }
    if (result)
    {
        result = entry->ReadArray(irLightRangeRG, 2, alignment);
    }
    if (result)
    {
        result = entry->ReadArray(irLightRangeRB, 2, alignment);
    }
    if (result)
    {
        result = wTable.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(weights);

    result = entry->ReadArray(weights, 256, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(centerWeighted);
    PARAMETER_INITIALIZE(LumaWeighted);

    result = centerWeighted.Load(entry, alignment);
    if (result)
    {
        result = LumaWeighted.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(weights);

    result = entry->ReadArray(weights, 256, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(weights);

    result = entry->ReadArray(weights, 64, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(enableIR);
    PARAMETER_INITIALIZE(weightTables);
    PARAMETER_INITIALIZE(vlDetect);

    SYMBOL_TABLE_ENTRY_READ(entry, result, enableIR, alignment)
    if (result)
    {
        result = weightTables.Load(entry, alignment);
    }
    if (result)
    {
        result = vlDetect.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(minIRDiff);
    PARAMETER_INITIALIZE(maxIRDiff);
    PARAMETER_INITIALIZE(expIdxTh1);
    PARAMETER_INITIALIZE(expIdxTh2);

    SYMBOL_TABLE_ENTRY_READ(entry, result, minIRDiff, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, maxIRDiff, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, expIdxTh1, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, expIdxTh2, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(fixExpIdx);
    PARAMETER_INITIALIZE(ALSdarkThreshold);
    PARAMETER_INITIALIZE(ALSbrightThreshold);
    PARAMETER_INITIALIZE(ALSchangeModeCountTH);
    PARAMETER_INITIALIZE(expIdxSettledTH);
    PARAMETER_INITIALIZE(expIdxSettledCountTH);
    PARAMETER_INITIALIZE(initialIR);
    PARAMETER_INITIALIZE(reachBoundaryTH);
    PARAMETER_INITIALIZE(convergeSpeed);
    PARAMETER_INITIALIZE(irTarget);
    PARAMETER_INITIALIZE(irTargetSettledTH);
    PARAMETER_INITIALIZE(irSettledCountTH);
    PARAMETER_INITIALIZE(irMaskpercentage);
    PARAMETER_INITIALIZE(minIRIntensity);
    PARAMETER_INITIALIZE(maxIRIntensity);
    PARAMETER_INITIALIZE(irALSDiffTH);
    PARAMETER_INITIALIZE(irALSDiffCountTH);
    PARAMETER_INITIALIZE(irExpIdxDiffTH);
    PARAMETER_INITIALIZE(irExpIdxDiffWaitTimeTH);
    PARAMETER_INITIALIZE(irTimingTH);
    PARAMETER_INITIALIZE(irDiffLength);
    PARAMETER_INITIALIZE(irDiffTable);
    PARAMETER_INITIALIZE(TMTargetForIR);
    PARAMETER_INITIALIZE(SEFHistRefTargetForIR);

    SYMBOL_TABLE_ENTRY_READ(entry, result, fixExpIdx, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, ALSdarkThreshold, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, ALSbrightThreshold, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, ALSchangeModeCountTH, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, expIdxSettledTH, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, expIdxSettledCountTH, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, initialIR, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, reachBoundaryTH, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, convergeSpeed, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, irTarget, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, irTargetSettledTH, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, irSettledCountTH, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, irMaskpercentage, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, minIRIntensity, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, maxIRIntensity, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, irALSDiffTH, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, irALSDiffCountTH, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, irExpIdxDiffTH, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, irExpIdxDiffWaitTimeTH, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, irTimingTH, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, irDiffLength, alignment)
    if (result)
    {
        result = irDiffTable.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, TMTargetForIR, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, SEFHistRefTargetForIR, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(minIRDiff);
    PARAMETER_INITIALIZE(maxIRDiff);
    PARAMETER_INITIALIZE(expIdxTh1);
    PARAMETER_INITIALIZE(expIdxTh2);

    SYMBOL_TABLE_ENTRY_READ(entry, result, minIRDiff, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, maxIRDiff, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, expIdxTh1, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, expIdxTh2, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(fixExpIdx);
    PARAMETER_INITIALIZE(ALSdarkThreshold);
    PARAMETER_INITIALIZE(ALSbrightThreshold);
    PARAMETER_INITIALIZE(ALSchangeModeCountTH);
    PARAMETER_INITIALIZE(expIdxSettledTH);
    PARAMETER_INITIALIZE(expIdxSettledCountTH);
    PARAMETER_INITIALIZE(initialIR);
    PARAMETER_INITIALIZE(reachBoundaryTH);
    PARAMETER_INITIALIZE(convergeSpeed);
    PARAMETER_INITIALIZE(irTarget);
    PARAMETER_INITIALIZE(irTargetSettledTH);
    PARAMETER_INITIALIZE(irSettledCountTH);
    PARAMETER_INITIALIZE(irMaskpercentage);
    PARAMETER_INITIALIZE(minIRIntensity);
    PARAMETER_INITIALIZE(maxIRIntensity);
    PARAMETER_INITIALIZE(irALSDiffTH);
    PARAMETER_INITIALIZE(irALSDiffCountTH);
    PARAMETER_INITIALIZE(irExpIdxDiffTH);
    PARAMETER_INITIALIZE(irExpIdxDiffWaitTimeTH);
    PARAMETER_INITIALIZE(irTimingTH);
    PARAMETER_INITIALIZE(irDiffLength);
    PARAMETER_INITIALIZE(irDiffTable);
    PARAMETER_INITIALIZE(luxLumaTargetForIR);

    SYMBOL_TABLE_ENTRY_READ(entry, result, fixExpIdx, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, ALSdarkThreshold, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, ALSbrightThreshold, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, ALSchangeModeCountTH, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, expIdxSettledTH, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, expIdxSettledCountTH, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, initialIR, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, reachBoundaryTH, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, convergeSpeed, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, irTarget, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, irTargetSettledTH, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, irSettledCountTH, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, irMaskpercentage, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, minIRIntensity, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, maxIRIntensity, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, irALSDiffTH, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, irALSDiffCountTH, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, irExpIdxDiffTH, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, irExpIdxDiffWaitTimeTH, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, irTimingTH, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, irDiffLength, alignment)
    if (result)
    {
        result = irDiffTable.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, luxLumaTargetForIR, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(IrLinear);
    PARAMETER_INITIALIZE(IrShdr);
    PARAMETER_INITIALIZE(IrMtr);

    result = module_version.Load(entry, alignment);
    if (result)
    {
        result = IrLinear.Load(entry, alignment);
    }
    if (result)
    {
        result = IrShdr.Load(entry, alignment);
    }
    if (result)
    {
        result = IrMtr.Load(entry, alignment);
    }

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load module_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool AECIRType::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;
}

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Create module, and return a new object
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
ParameterModule* AECIRTypeClass::Create(
    ModuleData*    moduleData,
    DefaultModule* const defModule) const
{
    AECIRTypeClass* 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 = (AECIRTypeClass*)module;
        }
        else
        {
            cls = PARAMETER_NEW AECIRTypeClass(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 AECIRTypeClass, binary version (%lld) does not match source version (%lld)\n",
            moduleData->Version.Value, Version.Value);
    }
    else
    {
        PARAMETER_LOG_ERROR(moduleData->SetManager, "Unable to create AECIRTypeClass, binary name (%s) does not match source name (%s)\n",
            moduleData->Type, Type);
    }

    return (ParameterModule*)cls;
}

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

    if (!Loaded)
    {
        BYTE const alignment = table->Alignment;
        AECIRTypeClass* 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, "AECIRTypeClass::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 AECIRTypeClass::UnloadModule()
{
    if (Loaded)
    {
        Loaded = false;
    }
}

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

AECIR_NAMESPACE_END
