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

#include "defog_1_0_0.h"
#include "parametersetmanager.h"

DEFOG_1_0_0_NAMESPACE_BEGIN

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// SetValue/GetValue Functions
/// Gets or sets the requested value
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool hdr_trig_type::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, "hdr_trig_low_range_tab") == 0)
    {
        __result = hdr_trig_low_range_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "hdr_trig_low_prob") == 0)
    {
        ParameterUtils::DoubleToString((double)hdr_trig_low_prob, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "hdr_trig_high_range_tab") == 0)
    {
        __result = hdr_trig_high_range_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "hdr_trig_high_prob") == 0)
    {
        ParameterUtils::DoubleToString((double)hdr_trig_high_prob, __value, __size, 0);
        __result = true;
    }

    return __result;
}

bool hdr_trig_type::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, "hdr_trig_low_range_tab") == 0)
    {
        __result = hdr_trig_low_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "hdr_trig_low_prob") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            hdr_trig_low_prob = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "hdr_trig_high_range_tab") == 0)
    {
        __result = hdr_trig_high_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "hdr_trig_high_prob") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            hdr_trig_high_prob = (INT32)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

    return __result;
}

bool hdr_trig_type::hdr_trig_low_range_tabStruct::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, "hdr_trig_low_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)hdr_trig_low_range[__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)hdr_trig_low_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool hdr_trig_type::hdr_trig_low_range_tabStruct::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, "hdr_trig_low_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                hdr_trig_low_range[__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)
                {
                    hdr_trig_low_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

bool hdr_trig_type::hdr_trig_high_range_tabStruct::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, "hdr_trig_high_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)hdr_trig_high_range[__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)hdr_trig_high_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool hdr_trig_type::hdr_trig_high_range_tabStruct::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, "hdr_trig_high_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                hdr_trig_high_range[__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)
                {
                    hdr_trig_high_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

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

    return __result;
}

bool drc_trig_type::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, "drc_trig_low_range_tab") == 0)
    {
        __result = drc_trig_low_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "drc_trig_low_prob") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            drc_trig_low_prob = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "drc_trig_high_range_tab") == 0)
    {
        __result = drc_trig_high_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "drc_trig_high_prob") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            drc_trig_high_prob = (INT32)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

    return __result;
}

bool drc_trig_type::drc_trig_low_range_tabStruct::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, "drc_trig_low_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)drc_trig_low_range[__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)drc_trig_low_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool drc_trig_type::drc_trig_low_range_tabStruct::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, "drc_trig_low_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                drc_trig_low_range[__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)
                {
                    drc_trig_low_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

bool drc_trig_type::drc_trig_high_range_tabStruct::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, "drc_trig_high_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)drc_trig_high_range[__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)drc_trig_high_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool drc_trig_type::drc_trig_high_range_tabStruct::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, "drc_trig_high_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                drc_trig_high_range[__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)
                {
                    drc_trig_high_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

bool cct_trig_type::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, "cct_trig_low_range_tab") == 0)
    {
        __result = cct_trig_low_range_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "cct_trig_low_prob") == 0)
    {
        ParameterUtils::DoubleToString((double)cct_trig_low_prob, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "cct_trig_indoor_outdoor_range_tab") == 0)
    {
        __result = cct_trig_indoor_outdoor_range_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "cct_trig_indoor_outdoor_prob") == 0)
    {
        ParameterUtils::DoubleToString((double)cct_trig_indoor_outdoor_prob, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "cct_trig_outdoor_fog_range_tab") == 0)
    {
        __result = cct_trig_outdoor_fog_range_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "cct_trig_outdoor_fog_prob") == 0)
    {
        ParameterUtils::DoubleToString((double)cct_trig_outdoor_fog_prob, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "cct_trig_high_range_tab") == 0)
    {
        __result = cct_trig_high_range_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "cct_trig_high_prob") == 0)
    {
        ParameterUtils::DoubleToString((double)cct_trig_high_prob, __value, __size, 0);
        __result = true;
    }

    return __result;
}

bool cct_trig_type::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, "cct_trig_low_range_tab") == 0)
    {
        __result = cct_trig_low_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "cct_trig_low_prob") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            cct_trig_low_prob = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "cct_trig_indoor_outdoor_range_tab") == 0)
    {
        __result = cct_trig_indoor_outdoor_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "cct_trig_indoor_outdoor_prob") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            cct_trig_indoor_outdoor_prob = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "cct_trig_outdoor_fog_range_tab") == 0)
    {
        __result = cct_trig_outdoor_fog_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "cct_trig_outdoor_fog_prob") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            cct_trig_outdoor_fog_prob = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "cct_trig_high_range_tab") == 0)
    {
        __result = cct_trig_high_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "cct_trig_high_prob") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            cct_trig_high_prob = (INT32)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

    return __result;
}

bool cct_trig_type::cct_trig_low_range_tabStruct::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, "cct_trig_low_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)cct_trig_low_range[__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)cct_trig_low_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool cct_trig_type::cct_trig_low_range_tabStruct::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, "cct_trig_low_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                cct_trig_low_range[__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)
                {
                    cct_trig_low_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

bool cct_trig_type::cct_trig_indoor_outdoor_range_tabStruct::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, "cct_trig_indoor_outdoor_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)cct_trig_indoor_outdoor_range[__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)cct_trig_indoor_outdoor_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool cct_trig_type::cct_trig_indoor_outdoor_range_tabStruct::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, "cct_trig_indoor_outdoor_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                cct_trig_indoor_outdoor_range[__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)
                {
                    cct_trig_indoor_outdoor_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

bool cct_trig_type::cct_trig_outdoor_fog_range_tabStruct::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, "cct_trig_outdoor_fog_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)cct_trig_outdoor_fog_range[__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)cct_trig_outdoor_fog_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool cct_trig_type::cct_trig_outdoor_fog_range_tabStruct::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, "cct_trig_outdoor_fog_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                cct_trig_outdoor_fog_range[__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)
                {
                    cct_trig_outdoor_fog_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

bool cct_trig_type::cct_trig_high_range_tabStruct::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, "cct_trig_high_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)cct_trig_high_range[__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)cct_trig_high_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool cct_trig_type::cct_trig_high_range_tabStruct::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, "cct_trig_high_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                cct_trig_high_range[__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)
                {
                    cct_trig_high_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

bool lux_trig_type::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, "lux_trig_daylight_range_tab") == 0)
    {
        __result = lux_trig_daylight_range_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "lux_trig_daylight_prob") == 0)
    {
        ParameterUtils::DoubleToString((double)lux_trig_daylight_prob, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "lux_trig_normallight_range_tab") == 0)
    {
        __result = lux_trig_normallight_range_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "lux_trig_normallight_prob") == 0)
    {
        ParameterUtils::DoubleToString((double)lux_trig_normallight_prob, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "lux_trig_lowlight_range_tab") == 0)
    {
        __result = lux_trig_lowlight_range_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "lux_trig_lowlight_prob") == 0)
    {
        ParameterUtils::DoubleToString((double)lux_trig_lowlight_prob, __value, __size, 0);
        __result = true;
    }

    return __result;
}

bool lux_trig_type::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, "lux_trig_daylight_range_tab") == 0)
    {
        __result = lux_trig_daylight_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "lux_trig_daylight_prob") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            lux_trig_daylight_prob = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "lux_trig_normallight_range_tab") == 0)
    {
        __result = lux_trig_normallight_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "lux_trig_normallight_prob") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            lux_trig_normallight_prob = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "lux_trig_lowlight_range_tab") == 0)
    {
        __result = lux_trig_lowlight_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "lux_trig_lowlight_prob") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            lux_trig_lowlight_prob = (INT32)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

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

    return __result;
}

bool lux_trig_type::lux_trig_daylight_range_tabStruct::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, "lux_trig_daylight_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)lux_trig_daylight_range[__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)lux_trig_daylight_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool lux_trig_type::lux_trig_daylight_range_tabStruct::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, "lux_trig_daylight_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                lux_trig_daylight_range[__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)
                {
                    lux_trig_daylight_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

bool lux_trig_type::lux_trig_normallight_range_tabStruct::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, "lux_trig_normallight_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)lux_trig_normallight_range[__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)lux_trig_normallight_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool lux_trig_type::lux_trig_normallight_range_tabStruct::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, "lux_trig_normallight_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                lux_trig_normallight_range[__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)
                {
                    lux_trig_normallight_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

bool lux_trig_type::lux_trig_lowlight_range_tabStruct::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, "lux_trig_lowlight_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)lux_trig_lowlight_range[__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)lux_trig_lowlight_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool lux_trig_type::lux_trig_lowlight_range_tabStruct::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, "lux_trig_lowlight_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                lux_trig_lowlight_range[__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)
                {
                    lux_trig_lowlight_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

bool dnr_trig_type::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, "dnr_trig_flat_range_tab") == 0)
    {
        __result = dnr_trig_flat_range_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "dnr_trig_flat_prob") == 0)
    {
        ParameterUtils::DoubleToString((double)dnr_trig_flat_prob, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "dnr_trig_fog_range_tab") == 0)
    {
        __result = dnr_trig_fog_range_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "dnr_trig_fog_prob") == 0)
    {
        ParameterUtils::DoubleToString((double)dnr_trig_fog_prob, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "dnr_trig_normal_range_tab") == 0)
    {
        __result = dnr_trig_normal_range_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "dnr_trig_normal_prob") == 0)
    {
        ParameterUtils::DoubleToString((double)dnr_trig_normal_prob, __value, __size, 0);
        __result = true;
    }

    return __result;
}

bool dnr_trig_type::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, "dnr_trig_flat_range_tab") == 0)
    {
        __result = dnr_trig_flat_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "dnr_trig_flat_prob") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            dnr_trig_flat_prob = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "dnr_trig_fog_range_tab") == 0)
    {
        __result = dnr_trig_fog_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "dnr_trig_fog_prob") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            dnr_trig_fog_prob = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "dnr_trig_normal_range_tab") == 0)
    {
        __result = dnr_trig_normal_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "dnr_trig_normal_prob") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            dnr_trig_normal_prob = (INT32)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

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

    return __result;
}

bool dnr_trig_type::dnr_trig_flat_range_tabStruct::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, "dnr_trig_flat_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)dnr_trig_flat_range[__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)dnr_trig_flat_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool dnr_trig_type::dnr_trig_flat_range_tabStruct::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, "dnr_trig_flat_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                dnr_trig_flat_range[__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)
                {
                    dnr_trig_flat_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

bool dnr_trig_type::dnr_trig_fog_range_tabStruct::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, "dnr_trig_fog_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)dnr_trig_fog_range[__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)dnr_trig_fog_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool dnr_trig_type::dnr_trig_fog_range_tabStruct::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, "dnr_trig_fog_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                dnr_trig_fog_range[__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)
                {
                    dnr_trig_fog_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

bool dnr_trig_type::dnr_trig_normal_range_tabStruct::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, "dnr_trig_normal_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)dnr_trig_normal_range[__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)dnr_trig_normal_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool dnr_trig_type::dnr_trig_normal_range_tabStruct::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, "dnr_trig_normal_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                dnr_trig_normal_range[__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)
                {
                    dnr_trig_normal_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

bool SHDR_mode_fsd_type::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, "fsd_en") == 0)
    {
        ParameterUtils::DoubleToString((double)fsd_en, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "fsd_2a_en") == 0)
    {
        ParameterUtils::DoubleToString((double)fsd_2a_en, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "dnr_trig") == 0)
    {
        __result = dnr_trig.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "lux_trig") == 0)
    {
        __result = lux_trig.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "cct_trig") == 0)
    {
        __result = cct_trig.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "drc_trig") == 0)
    {
        __result = drc_trig.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "hdr_trig") == 0)
    {
        __result = hdr_trig.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool SHDR_mode_fsd_type::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, "fsd_en") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            fsd_en = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "fsd_2a_en") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            fsd_2a_en = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "dnr_trig") == 0)
    {
        __result = dnr_trig.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "lux_trig") == 0)
    {
        __result = lux_trig.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "cct_trig") == 0)
    {
        __result = cct_trig.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "drc_trig") == 0)
    {
        __result = drc_trig.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "hdr_trig") == 0)
    {
        __result = hdr_trig.SetValue(&__path[__pos], __value);
    }

    return __result;
}

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

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

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

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

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

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

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

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

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "enable") == 0)
    {
        ParameterUtils::DoubleToString((double)enable, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "strength") == 0)
    {
        ParameterUtils::DoubleToString((double)strength, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "dark_thres") == 0)
    {
        ParameterUtils::DoubleToString((double)dark_thres, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "bright_thres") == 0)
    {
        ParameterUtils::DoubleToString((double)bright_thres, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "dark_limit") == 0)
    {
        ParameterUtils::DoubleToString((double)dark_limit, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "bright_limit") == 0)
    {
        ParameterUtils::DoubleToString((double)bright_limit, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "dark_preserve") == 0)
    {
        ParameterUtils::DoubleToString((double)dark_preserve, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "bright_preserve") == 0)
    {
        ParameterUtils::DoubleToString((double)bright_preserve, __value, __size, 0);
        __result = true;
    }

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "enable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enable = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "strength") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            strength = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "dark_thres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            dark_thres = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "bright_thres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            bright_thres = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "dark_limit") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            dark_limit = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "bright_limit") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            bright_limit = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "dark_preserve") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            dark_preserve = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "bright_preserve") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            bright_preserve = (INT32)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

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

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "enable") == 0)
    {
        ParameterUtils::DoubleToString((double)enable, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "strength") == 0)
    {
        ParameterUtils::DoubleToString((double)strength, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "dark_thres") == 0)
    {
        ParameterUtils::DoubleToString((double)dark_thres, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "bright_thres") == 0)
    {
        ParameterUtils::DoubleToString((double)bright_thres, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "dark_limit") == 0)
    {
        ParameterUtils::DoubleToString((double)dark_limit, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "bright_limit") == 0)
    {
        ParameterUtils::DoubleToString((double)bright_limit, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "dark_preserve") == 0)
    {
        ParameterUtils::DoubleToString((double)dark_preserve, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "bright_preserve") == 0)
    {
        ParameterUtils::DoubleToString((double)bright_preserve, __value, __size, 0);
        __result = true;
    }

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "enable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enable = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "strength") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            strength = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "dark_thres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            dark_thres = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "bright_thres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            bright_thres = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "dark_limit") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            dark_limit = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "bright_limit") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            bright_limit = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "dark_preserve") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            dark_preserve = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "bright_preserve") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            bright_preserve = (INT32)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

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

    return __result;
}

bool SHDR_mode_common_type::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, "speed") == 0)
    {
        ParameterUtils::DoubleToString((double)speed, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "abc_str") == 0)
    {
        ParameterUtils::DoubleToString((double)abc_str, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "acc_dark_str") == 0)
    {
        ParameterUtils::DoubleToString((double)acc_dark_str, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "acc_bright_str") == 0)
    {
        ParameterUtils::DoubleToString((double)acc_bright_str, __value, __size);
        __result = true;
    }

    return __result;
}

bool SHDR_mode_common_type::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, "speed") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            speed = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "abc_str") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            abc_str = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "acc_dark_str") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            acc_dark_str = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "acc_bright_str") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            acc_bright_str = (float)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

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

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

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

    return __result;
}

bool gain_trig_type::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, "gain_trig_low_range_tab") == 0)
    {
        __result = gain_trig_low_range_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "gain_trig_low_prob") == 0)
    {
        ParameterUtils::DoubleToString((double)gain_trig_low_prob, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "gain_trig_normal_range_tab") == 0)
    {
        __result = gain_trig_normal_range_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "gain_trig_normal_prob") == 0)
    {
        ParameterUtils::DoubleToString((double)gain_trig_normal_prob, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "gain_trig_high_range_tab") == 0)
    {
        __result = gain_trig_high_range_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "gain_trig_high_prob") == 0)
    {
        ParameterUtils::DoubleToString((double)gain_trig_high_prob, __value, __size, 0);
        __result = true;
    }

    return __result;
}

bool gain_trig_type::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, "gain_trig_low_range_tab") == 0)
    {
        __result = gain_trig_low_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "gain_trig_low_prob") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            gain_trig_low_prob = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "gain_trig_normal_range_tab") == 0)
    {
        __result = gain_trig_normal_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "gain_trig_normal_prob") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            gain_trig_normal_prob = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "gain_trig_high_range_tab") == 0)
    {
        __result = gain_trig_high_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "gain_trig_high_prob") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            gain_trig_high_prob = (INT32)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

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

    return __result;
}

bool gain_trig_type::gain_trig_low_range_tabStruct::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, "gain_trig_low_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)gain_trig_low_range[__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)gain_trig_low_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool gain_trig_type::gain_trig_low_range_tabStruct::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, "gain_trig_low_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                gain_trig_low_range[__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)
                {
                    gain_trig_low_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

bool gain_trig_type::gain_trig_normal_range_tabStruct::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, "gain_trig_normal_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)gain_trig_normal_range[__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)gain_trig_normal_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool gain_trig_type::gain_trig_normal_range_tabStruct::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, "gain_trig_normal_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                gain_trig_normal_range[__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)
                {
                    gain_trig_normal_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

bool gain_trig_type::gain_trig_high_range_tabStruct::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, "gain_trig_high_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)gain_trig_high_range[__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)gain_trig_high_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool gain_trig_type::gain_trig_high_range_tabStruct::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, "gain_trig_high_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                gain_trig_high_range[__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)
                {
                    gain_trig_high_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

    return __result;
}

bool Linear_mode_ce_type::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, "ce_en") == 0)
    {
        ParameterUtils::DoubleToString((double)ce_en, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "guc_en") == 0)
    {
        ParameterUtils::DoubleToString((double)guc_en, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "dcc_en") == 0)
    {
        ParameterUtils::DoubleToString((double)dcc_en, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "guc_str") == 0)
    {
        ParameterUtils::DoubleToString((double)guc_str, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "dcc_dark_str") == 0)
    {
        ParameterUtils::DoubleToString((double)dcc_dark_str, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "dcc_bright_str") == 0)
    {
        ParameterUtils::DoubleToString((double)dcc_bright_str, __value, __size);
        __result = true;
    }

    return __result;
}

bool Linear_mode_ce_type::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, "ce_en") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            ce_en = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "guc_en") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            guc_en = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "dcc_en") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            dcc_en = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "guc_str") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            guc_str = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "dcc_dark_str") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            dcc_dark_str = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "dcc_bright_str") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            dcc_bright_str = (float)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

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

    return __result;
}

bool Linear_mode_fsd_type::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, "fsd_en") == 0)
    {
        ParameterUtils::DoubleToString((double)fsd_en, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "fsd_2a_en") == 0)
    {
        ParameterUtils::DoubleToString((double)fsd_2a_en, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "dnr_trig") == 0)
    {
        __result = dnr_trig.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "lux_trig") == 0)
    {
        __result = lux_trig.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "cct_trig") == 0)
    {
        __result = cct_trig.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "drc_trig") == 0)
    {
        __result = drc_trig.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "hdr_trig") == 0)
    {
        __result = hdr_trig.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool Linear_mode_fsd_type::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, "fsd_en") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            fsd_en = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "fsd_2a_en") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            fsd_2a_en = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "dnr_trig") == 0)
    {
        __result = dnr_trig.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "lux_trig") == 0)
    {
        __result = lux_trig.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "cct_trig") == 0)
    {
        __result = cct_trig.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "drc_trig") == 0)
    {
        __result = drc_trig.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "hdr_trig") == 0)
    {
        __result = hdr_trig.SetValue(&__path[__pos], __value);
    }

    return __result;
}

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

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

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

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

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

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

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

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

    return __result;
}

bool Linear_mode_defog_type::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, "defog_en") == 0)
    {
        ParameterUtils::DoubleToString((double)defog_en, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "speed") == 0)
    {
        ParameterUtils::DoubleToString((double)speed, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "convergence_mode") == 0)
    {
        ParameterUtils::DoubleToString((double)convergence_mode, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "algo") == 0)
    {
        ParameterUtils::DoubleToString((double)algo, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "strength") == 0)
    {
        ParameterUtils::DoubleToString((double)strength, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "lp_algo_decision_mode") == 0)
    {
        ParameterUtils::DoubleToString((double)lp_algo_decision_mode, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "lp_algo_color_comp_gain") == 0)
    {
        ParameterUtils::DoubleToString((double)lp_algo_color_comp_gain, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "abc_en") == 0)
    {
        ParameterUtils::DoubleToString((double)abc_en, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "acc_en") == 0)
    {
        ParameterUtils::DoubleToString((double)acc_en, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "dark_thres") == 0)
    {
        ParameterUtils::DoubleToString((double)dark_thres, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "bright_thres") == 0)
    {
        ParameterUtils::DoubleToString((double)bright_thres, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "dark_limit") == 0)
    {
        ParameterUtils::DoubleToString((double)dark_limit, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "bright_limit") == 0)
    {
        ParameterUtils::DoubleToString((double)bright_limit, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "dark_preserve") == 0)
    {
        ParameterUtils::DoubleToString((double)dark_preserve, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "bright_preserve") == 0)
    {
        ParameterUtils::DoubleToString((double)bright_preserve, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "abc_str") == 0)
    {
        ParameterUtils::DoubleToString((double)abc_str, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "acc_dark_str") == 0)
    {
        ParameterUtils::DoubleToString((double)acc_dark_str, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "acc_bright_str") == 0)
    {
        ParameterUtils::DoubleToString((double)acc_bright_str, __value, __size);
        __result = true;
    }

    return __result;
}

bool Linear_mode_defog_type::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, "defog_en") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            defog_en = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "speed") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            speed = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "convergence_mode") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            convergence_mode = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "algo") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            algo = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "strength") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            strength = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "lp_algo_decision_mode") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            lp_algo_decision_mode = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "lp_algo_color_comp_gain") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            lp_algo_color_comp_gain = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "abc_en") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            abc_en = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "acc_en") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            acc_en = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "dark_thres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            dark_thres = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "bright_thres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            bright_thres = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "dark_limit") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            dark_limit = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "bright_limit") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            bright_limit = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "dark_preserve") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            dark_preserve = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "bright_preserve") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            bright_preserve = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "abc_str") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            abc_str = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "acc_dark_str") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            acc_dark_str = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "acc_bright_str") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            acc_bright_str = (float)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

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

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

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

    return __result;
}

bool iotdefog10Type::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_section") == 0)
    {
        __result = enable_section.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "module_version") == 0)
    {
        __result = module_version.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "parameter_version") == 0)
    {
        __result = parameter_version.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "Linear_mode_section") == 0)
    {
        __result = Linear_mode_section.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "SHDR_mode_section") == 0)
    {
        __result = SHDR_mode_section.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool iotdefog10Type::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_section") == 0)
    {
        __result = enable_section.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "module_version") == 0)
    {
        __result = module_version.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "parameter_version") == 0)
    {
        __result = parameter_version.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "Linear_mode_section") == 0)
    {
        __result = Linear_mode_section.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "SHDR_mode_section") == 0)
    {
        __result = SHDR_mode_section.SetValue(&__path[__pos], __value);
    }

    return __result;
}

bool iotdefog10Type::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_section
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("enable_section", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "enable_section") == 0)
    {
        __result = enable_section.GetInfo(&__path[__pos], __info);
    }

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

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

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

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

    return __result;
}

bool iotdefog10Type::enable_sectionStruct::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, "defog_enable") == 0)
    {
        ParameterUtils::DoubleToString((double)defog_enable, __value, __size, 0);
        __result = true;
    }

    return __result;
}

bool iotdefog10Type::enable_sectionStruct::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, "defog_enable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            defog_enable = (globalelements::enable_flag_type)dblValue; 
        }
    }

    return __result;
}

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

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

    return __result;
}

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

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

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

    return __result;
}


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Default Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
iotdefog10TypeClass::iotdefog10TypeClass(
    const CHAR* const name)
    : ParameterModule(name, MAJOR, MINOR, PATCH, nullptr)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(enable_section);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(Linear_mode_section);
    PARAMETER_INITIALIZE(SHDR_mode_section);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
iotdefog10TypeClass::iotdefog10TypeClass(
    const CHAR* const name,
    ModuleData* const moduleData)
    : ParameterModule(name, MAJOR, MINOR, PATCH, moduleData)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(enable_section);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(Linear_mode_section);
    PARAMETER_INITIALIZE(SHDR_mode_section);
}

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

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

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

    PARAMETER_INITIALIZE(hdr_trig_low_range_tab);
    PARAMETER_INITIALIZE(hdr_trig_low_prob);
    PARAMETER_INITIALIZE(hdr_trig_high_range_tab);
    PARAMETER_INITIALIZE(hdr_trig_high_prob);

    result = hdr_trig_low_range_tab.Load(entry, alignment);
    SYMBOL_TABLE_ENTRY_READ(entry, result, hdr_trig_low_prob, alignment)
    if (result)
    {
        result = hdr_trig_high_range_tab.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, hdr_trig_high_prob, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(hdr_trig_low_range);

    result = entry->ReadArray(hdr_trig_low_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(hdr_trig_high_range);

    result = entry->ReadArray(hdr_trig_high_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(drc_trig_low_range_tab);
    PARAMETER_INITIALIZE(drc_trig_low_prob);
    PARAMETER_INITIALIZE(drc_trig_high_range_tab);
    PARAMETER_INITIALIZE(drc_trig_high_prob);

    result = drc_trig_low_range_tab.Load(entry, alignment);
    SYMBOL_TABLE_ENTRY_READ(entry, result, drc_trig_low_prob, alignment)
    if (result)
    {
        result = drc_trig_high_range_tab.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, drc_trig_high_prob, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(drc_trig_low_range);

    result = entry->ReadArray(drc_trig_low_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(drc_trig_high_range);

    result = entry->ReadArray(drc_trig_high_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(cct_trig_low_range_tab);
    PARAMETER_INITIALIZE(cct_trig_low_prob);
    PARAMETER_INITIALIZE(cct_trig_indoor_outdoor_range_tab);
    PARAMETER_INITIALIZE(cct_trig_indoor_outdoor_prob);
    PARAMETER_INITIALIZE(cct_trig_outdoor_fog_range_tab);
    PARAMETER_INITIALIZE(cct_trig_outdoor_fog_prob);
    PARAMETER_INITIALIZE(cct_trig_high_range_tab);
    PARAMETER_INITIALIZE(cct_trig_high_prob);

    result = cct_trig_low_range_tab.Load(entry, alignment);
    SYMBOL_TABLE_ENTRY_READ(entry, result, cct_trig_low_prob, alignment)
    if (result)
    {
        result = cct_trig_indoor_outdoor_range_tab.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, cct_trig_indoor_outdoor_prob, alignment)
    if (result)
    {
        result = cct_trig_outdoor_fog_range_tab.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, cct_trig_outdoor_fog_prob, alignment)
    if (result)
    {
        result = cct_trig_high_range_tab.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, cct_trig_high_prob, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(cct_trig_low_range);

    result = entry->ReadArray(cct_trig_low_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(cct_trig_indoor_outdoor_range);

    result = entry->ReadArray(cct_trig_indoor_outdoor_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(cct_trig_outdoor_fog_range);

    result = entry->ReadArray(cct_trig_outdoor_fog_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(cct_trig_high_range);

    result = entry->ReadArray(cct_trig_high_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(lux_trig_daylight_range_tab);
    PARAMETER_INITIALIZE(lux_trig_daylight_prob);
    PARAMETER_INITIALIZE(lux_trig_normallight_range_tab);
    PARAMETER_INITIALIZE(lux_trig_normallight_prob);
    PARAMETER_INITIALIZE(lux_trig_lowlight_range_tab);
    PARAMETER_INITIALIZE(lux_trig_lowlight_prob);

    result = lux_trig_daylight_range_tab.Load(entry, alignment);
    SYMBOL_TABLE_ENTRY_READ(entry, result, lux_trig_daylight_prob, alignment)
    if (result)
    {
        result = lux_trig_normallight_range_tab.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, lux_trig_normallight_prob, alignment)
    if (result)
    {
        result = lux_trig_lowlight_range_tab.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, lux_trig_lowlight_prob, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(lux_trig_daylight_range);

    result = entry->ReadArray(lux_trig_daylight_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(lux_trig_normallight_range);

    result = entry->ReadArray(lux_trig_normallight_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(lux_trig_lowlight_range);

    result = entry->ReadArray(lux_trig_lowlight_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(dnr_trig_flat_range_tab);
    PARAMETER_INITIALIZE(dnr_trig_flat_prob);
    PARAMETER_INITIALIZE(dnr_trig_fog_range_tab);
    PARAMETER_INITIALIZE(dnr_trig_fog_prob);
    PARAMETER_INITIALIZE(dnr_trig_normal_range_tab);
    PARAMETER_INITIALIZE(dnr_trig_normal_prob);

    result = dnr_trig_flat_range_tab.Load(entry, alignment);
    SYMBOL_TABLE_ENTRY_READ(entry, result, dnr_trig_flat_prob, alignment)
    if (result)
    {
        result = dnr_trig_fog_range_tab.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, dnr_trig_fog_prob, alignment)
    if (result)
    {
        result = dnr_trig_normal_range_tab.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, dnr_trig_normal_prob, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(dnr_trig_flat_range);

    result = entry->ReadArray(dnr_trig_flat_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(dnr_trig_fog_range);

    result = entry->ReadArray(dnr_trig_fog_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(dnr_trig_normal_range);

    result = entry->ReadArray(dnr_trig_normal_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(fsd_en);
    PARAMETER_INITIALIZE(fsd_2a_en);
    PARAMETER_INITIALIZE(dnr_trig);
    PARAMETER_INITIALIZE(lux_trig);
    PARAMETER_INITIALIZE(cct_trig);
    PARAMETER_INITIALIZE(drc_trig);
    PARAMETER_INITIALIZE(hdr_trig);

    SYMBOL_TABLE_ENTRY_READ(entry, result, fsd_en, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, fsd_2a_en, alignment)
    if (result)
    {
        result = dnr_trig.Load(entry, alignment);
    }
    if (result)
    {
        result = lux_trig.Load(entry, alignment);
    }
    if (result)
    {
        result = cct_trig.Load(entry, alignment);
    }
    if (result)
    {
        result = drc_trig.Load(entry, alignment);
    }
    if (result)
    {
        result = hdr_trig.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(enable);
    PARAMETER_INITIALIZE(strength);
    PARAMETER_INITIALIZE(dark_thres);
    PARAMETER_INITIALIZE(bright_thres);
    PARAMETER_INITIALIZE(dark_limit);
    PARAMETER_INITIALIZE(bright_limit);
    PARAMETER_INITIALIZE(dark_preserve);
    PARAMETER_INITIALIZE(bright_preserve);

    SYMBOL_TABLE_ENTRY_READ(entry, result, enable, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, strength, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, dark_thres, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, bright_thres, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, dark_limit, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, bright_limit, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, dark_preserve, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, bright_preserve, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(enable);
    PARAMETER_INITIALIZE(strength);
    PARAMETER_INITIALIZE(dark_thres);
    PARAMETER_INITIALIZE(bright_thres);
    PARAMETER_INITIALIZE(dark_limit);
    PARAMETER_INITIALIZE(bright_limit);
    PARAMETER_INITIALIZE(dark_preserve);
    PARAMETER_INITIALIZE(bright_preserve);

    SYMBOL_TABLE_ENTRY_READ(entry, result, enable, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, strength, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, dark_thres, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, bright_thres, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, dark_limit, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, bright_limit, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, dark_preserve, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, bright_preserve, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(speed);
    PARAMETER_INITIALIZE(abc_str);
    PARAMETER_INITIALIZE(acc_dark_str);
    PARAMETER_INITIALIZE(acc_bright_str);

    SYMBOL_TABLE_ENTRY_READ(entry, result, speed, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, abc_str, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, acc_dark_str, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, acc_bright_str, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(Common);
    PARAMETER_INITIALIZE(ATES);
    PARAMETER_INITIALIZE(Defog);
    PARAMETER_INITIALIZE(FSD);

    result = Common.Load(entry, alignment);
    if (result)
    {
        result = ATES.Load(entry, alignment);
    }
    if (result)
    {
        result = Defog.Load(entry, alignment);
    }
    if (result)
    {
        result = FSD.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(gain_trig_low_range_tab);
    PARAMETER_INITIALIZE(gain_trig_low_prob);
    PARAMETER_INITIALIZE(gain_trig_normal_range_tab);
    PARAMETER_INITIALIZE(gain_trig_normal_prob);
    PARAMETER_INITIALIZE(gain_trig_high_range_tab);
    PARAMETER_INITIALIZE(gain_trig_high_prob);

    result = gain_trig_low_range_tab.Load(entry, alignment);
    SYMBOL_TABLE_ENTRY_READ(entry, result, gain_trig_low_prob, alignment)
    if (result)
    {
        result = gain_trig_normal_range_tab.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, gain_trig_normal_prob, alignment)
    if (result)
    {
        result = gain_trig_high_range_tab.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, gain_trig_high_prob, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(gain_trig_low_range);

    result = entry->ReadArray(gain_trig_low_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(gain_trig_normal_range);

    result = entry->ReadArray(gain_trig_normal_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(gain_trig_high_range);

    result = entry->ReadArray(gain_trig_high_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(gain_trig);

    result = gain_trig.Load(entry, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(ce_en);
    PARAMETER_INITIALIZE(guc_en);
    PARAMETER_INITIALIZE(dcc_en);
    PARAMETER_INITIALIZE(guc_str);
    PARAMETER_INITIALIZE(dcc_dark_str);
    PARAMETER_INITIALIZE(dcc_bright_str);

    SYMBOL_TABLE_ENTRY_READ(entry, result, ce_en, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, guc_en, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, dcc_en, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, guc_str, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, dcc_dark_str, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, dcc_bright_str, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(fsd_en);
    PARAMETER_INITIALIZE(fsd_2a_en);
    PARAMETER_INITIALIZE(dnr_trig);
    PARAMETER_INITIALIZE(lux_trig);
    PARAMETER_INITIALIZE(cct_trig);
    PARAMETER_INITIALIZE(drc_trig);
    PARAMETER_INITIALIZE(hdr_trig);

    SYMBOL_TABLE_ENTRY_READ(entry, result, fsd_en, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, fsd_2a_en, alignment)
    if (result)
    {
        result = dnr_trig.Load(entry, alignment);
    }
    if (result)
    {
        result = lux_trig.Load(entry, alignment);
    }
    if (result)
    {
        result = cct_trig.Load(entry, alignment);
    }
    if (result)
    {
        result = drc_trig.Load(entry, alignment);
    }
    if (result)
    {
        result = hdr_trig.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(defog_en);
    PARAMETER_INITIALIZE(speed);
    PARAMETER_INITIALIZE(convergence_mode);
    PARAMETER_INITIALIZE(algo);
    PARAMETER_INITIALIZE(strength);
    PARAMETER_INITIALIZE(lp_algo_decision_mode);
    PARAMETER_INITIALIZE(lp_algo_color_comp_gain);
    PARAMETER_INITIALIZE(abc_en);
    PARAMETER_INITIALIZE(acc_en);
    PARAMETER_INITIALIZE(dark_thres);
    PARAMETER_INITIALIZE(bright_thres);
    PARAMETER_INITIALIZE(dark_limit);
    PARAMETER_INITIALIZE(bright_limit);
    PARAMETER_INITIALIZE(dark_preserve);
    PARAMETER_INITIALIZE(bright_preserve);
    PARAMETER_INITIALIZE(abc_str);
    PARAMETER_INITIALIZE(acc_dark_str);
    PARAMETER_INITIALIZE(acc_bright_str);

    SYMBOL_TABLE_ENTRY_READ(entry, result, defog_en, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, speed, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, convergence_mode, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, algo, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, strength, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, lp_algo_decision_mode, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, lp_algo_color_comp_gain, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, abc_en, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, acc_en, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, dark_thres, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, bright_thres, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, dark_limit, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, bright_limit, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, dark_preserve, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, bright_preserve, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, abc_str, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, acc_dark_str, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, acc_bright_str, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(Defog);
    PARAMETER_INITIALIZE(FSD);
    PARAMETER_INITIALIZE(CE);
    PARAMETER_INITIALIZE(CSD);

    result = Defog.Load(entry, alignment);
    if (result)
    {
        result = FSD.Load(entry, alignment);
    }
    if (result)
    {
        result = CE.Load(entry, alignment);
    }
    if (result)
    {
        result = CSD.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(enable_section);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(Linear_mode_section);
    PARAMETER_INITIALIZE(SHDR_mode_section);

    result = enable_section.Load(entry, alignment);
    if (result)
    {
        result = module_version.Load(entry, alignment);
    }
    if (result)
    {
        result = parameter_version.Load(entry, alignment);
    }
    if (result)
    {
        result = Linear_mode_section.Load(entry, alignment);
    }
    if (result)
    {
        result = SHDR_mode_section.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(defog_enable);

    SYMBOL_TABLE_ENTRY_READ(entry, result, defog_enable, alignment)

    return result;
}

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

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

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

    return result;
}

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

    PARAMETER_INITIALIZE(revision);


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

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload iotdefog10Type
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void iotdefog10Type::Unload(ParameterFileSymbolTable* const __table)
{
    parameter_version.Unload(__table);
}

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

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

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

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

    return (ParameterModule*)cls;
}

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

    if (!Loaded)
    {
        BYTE const alignment = table->Alignment;
        iotdefog10TypeClass* 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, "iotdefog10TypeClass::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 iotdefog10TypeClass::UnloadModule()
{
    if (Loaded)
    {
        if (Data != nullptr && Data->SymbolTable != nullptr)
        {
            Unload(Data->SymbolTable);
        }
        else
        {
            PARAMETER_LOG_ERROR(Data != nullptr ? Data->SetManager : nullptr, "UnloadModule %s called with nullptr "
                "Data->SymbolTable object\n", Name);
            Unload(nullptr);
        }
        Loaded = false;
    }
}

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

DEFOG_1_0_0_NAMESPACE_END
