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

#include "afdspectralsensor.h"
#include "parametersetmanager.h"

AFDSPECTRALSENSOR_NAMESPACE_BEGIN

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// SetValue/GetValue Functions
/// Gets or sets the requested value
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool StartEndType::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, "start") == 0)
    {
        ParameterUtils::DoubleToString((double)start, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "end") == 0)
    {
        ParameterUtils::DoubleToString((double)end, __value, __size);
        __result = true;
    }

    return __result;
}

bool StartEndType::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, "start") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            start = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "end") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            end = (float)dblValue; 
        }
    }

    return __result;
}

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

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

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

    return __result;
}

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

    return __result;
}

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

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

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

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        if (__index < trigger1DataCount)
        {
            __result = trigger1Data[__index].GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        if (__index < trigger1DataCount)
        {
            __result = trigger1Data[__index].SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

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

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

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

    return __result;
}

bool FlickerInfoUpdateCoreDataType::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, "sameFlickerFreqThres") == 0)
    {
        ParameterUtils::DoubleToString((double)sameFlickerFreqThres, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "repACFlickerAmpRatioThres") == 0)
    {
        ParameterUtils::DoubleToString((double)repACFlickerAmpRatioThres, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "repFlickerAmpRatioThres") == 0)
    {
        ParameterUtils::DoubleToString((double)repFlickerAmpRatioThres, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "mlprFlickerFreqThres") == 0)
    {
        ParameterUtils::DoubleToString((double)mlprFlickerFreqThres, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "lowerFlickerFreqRatioThres") == 0)
    {
        ParameterUtils::DoubleToString((double)lowerFlickerFreqRatioThres, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "reservedParameters") == 0)
    {
        if (__index < reservedParametersCount)
        {
            ParameterUtils::DoubleToString((double)reservedParameters[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < reservedParametersCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)reservedParameters[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool FlickerInfoUpdateCoreDataType::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, "sameFlickerFreqThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            sameFlickerFreqThres = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "repACFlickerAmpRatioThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            repACFlickerAmpRatioThres = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "repFlickerAmpRatioThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            repFlickerAmpRatioThres = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "mlprFlickerFreqThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            mlprFlickerFreqThres = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "lowerFlickerFreqRatioThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            lowerFlickerFreqRatioThres = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "reservedParameters") == 0)
    {
        if (__index < reservedParametersCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                reservedParameters[__index] = (float)dblValue; 
            }
        }
        else
        {
            SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __pos = 0;

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

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

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

    return __result;
}

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

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

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

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

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

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

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        if (__index < trigger1DataCount)
        {
            __result = trigger1Data[__index].GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        if (__index < trigger1DataCount)
        {
            __result = trigger1Data[__index].SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

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

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

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

    return __result;
}

bool FrameSkipControlCoreDataType::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, "flickerFreqStableThres") == 0)
    {
        ParameterUtils::DoubleToString((double)flickerFreqStableThres, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "flickerMagStableThres") == 0)
    {
        ParameterUtils::DoubleToString((double)flickerMagStableThres, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "flickerRawAvgStableThres") == 0)
    {
        ParameterUtils::DoubleToString((double)flickerRawAvgStableThres, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "flickerFreqChgThres") == 0)
    {
        ParameterUtils::DoubleToString((double)flickerFreqChgThres, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "scLockFrame") == 0)
    {
        ParameterUtils::DoubleToString((double)scLockFrame, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "rsLockFrame") == 0)
    {
        ParameterUtils::DoubleToString((double)rsLockFrame, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "reservedParameters") == 0)
    {
        if (__index < reservedParametersCount)
        {
            ParameterUtils::DoubleToString((double)reservedParameters[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < reservedParametersCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)reservedParameters[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool FrameSkipControlCoreDataType::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, "flickerFreqStableThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            flickerFreqStableThres = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "flickerMagStableThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            flickerMagStableThres = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "flickerRawAvgStableThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            flickerRawAvgStableThres = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "flickerFreqChgThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            flickerFreqChgThres = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "scLockFrame") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            scLockFrame = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "rsLockFrame") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            rsLockFrame = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "reservedParameters") == 0)
    {
        if (__index < reservedParametersCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                reservedParameters[__index] = (float)dblValue; 
            }
        }
        else
        {
            SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __pos = 0;

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

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

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

    return __result;
}

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

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

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

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

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

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

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

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        if (__index < trigger1DataCount)
        {
            __result = trigger1Data[__index].GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        if (__index < trigger1DataCount)
        {
            __result = trigger1Data[__index].SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

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

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

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

    return __result;
}

bool FakeFlickerDetectionCoreDataType::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, "minFlickerAmpRatio") == 0)
    {
        ParameterUtils::DoubleToString((double)minFlickerAmpRatio, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "minFlickerAmpACRatio") == 0)
    {
        ParameterUtils::DoubleToString((double)minFlickerAmpACRatio, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "minFlickerAmpRatioHysteresis") == 0)
    {
        ParameterUtils::DoubleToString((double)minFlickerAmpRatioHysteresis, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "minFlickerAmpACRatioHysteresis") == 0)
    {
        ParameterUtils::DoubleToString((double)minFlickerAmpACRatioHysteresis, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "reservedParameters") == 0)
    {
        if (__index < reservedParametersCount)
        {
            ParameterUtils::DoubleToString((double)reservedParameters[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < reservedParametersCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)reservedParameters[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool FakeFlickerDetectionCoreDataType::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, "minFlickerAmpRatio") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minFlickerAmpRatio = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "minFlickerAmpACRatio") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minFlickerAmpACRatio = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "minFlickerAmpRatioHysteresis") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minFlickerAmpRatioHysteresis = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "minFlickerAmpACRatioHysteresis") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minFlickerAmpACRatioHysteresis = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "reservedParameters") == 0)
    {
        if (__index < reservedParametersCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                reservedParameters[__index] = (float)dblValue; 
            }
        }
        else
        {
            SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __pos = 0;

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

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

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

    return __result;
}

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

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

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

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

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

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        if (__index < trigger1DataCount)
        {
            __result = trigger1Data[__index].GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        if (__index < trigger1DataCount)
        {
            __result = trigger1Data[__index].SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

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

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

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

    return __result;
}

bool AdvancedProcessType::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, "skipRowSumAFDEnable") == 0)
    {
        ParameterUtils::DoubleToString((double)skipRowSumAFDEnable, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "initFlickerFreq") == 0)
    {
        ParameterUtils::DoubleToString((double)initFlickerFreq, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "reservedParameters") == 0)
    {
        if (__index < reservedParametersCount)
        {
            ParameterUtils::DoubleToString((double)reservedParameters[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < reservedParametersCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)reservedParameters[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool AdvancedProcessType::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, "skipRowSumAFDEnable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            skipRowSumAFDEnable = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "initFlickerFreq") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            initFlickerFreq = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "reservedParameters") == 0)
    {
        if (__index < reservedParametersCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                reservedParameters[__index] = (float)dblValue; 
            }
        }
        else
        {
            SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __pos = 0;

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

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

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

    return __result;
}

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

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

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

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

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "enable") == 0)
    {
        ParameterUtils::DoubleToString((double)enable, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "scdEnable") == 0)
    {
        ParameterUtils::DoubleToString((double)scdEnable, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "tempConvSpeed") == 0)
    {
        ParameterUtils::DoubleToString((double)tempConvSpeed, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "minAntiFlickerFreq") == 0)
    {
        ParameterUtils::DoubleToString((double)minAntiFlickerFreq, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "maxAntiFlickerFreq") == 0)
    {
        ParameterUtils::DoubleToString((double)maxAntiFlickerFreq, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "minWideBandAntiFlickerFreq") == 0)
    {
        ParameterUtils::DoubleToString((double)minWideBandAntiFlickerFreq, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "maxWideBandAntiFlickerFreq") == 0)
    {
        ParameterUtils::DoubleToString((double)maxWideBandAntiFlickerFreq, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "advancedProc") == 0)
    {
        __result = advancedProc.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "reservedParameters") == 0)
    {
        if (__index < reservedParametersCount)
        {
            ParameterUtils::DoubleToString((double)reservedParameters[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < reservedParametersCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)reservedParameters[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "enable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enable = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "scdEnable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            scdEnable = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "tempConvSpeed") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            tempConvSpeed = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "minAntiFlickerFreq") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minAntiFlickerFreq = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "maxAntiFlickerFreq") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            maxAntiFlickerFreq = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "minWideBandAntiFlickerFreq") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minWideBandAntiFlickerFreq = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "maxWideBandAntiFlickerFreq") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            maxWideBandAntiFlickerFreq = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "advancedProc") == 0)
    {
        __result = advancedProc.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "reservedParameters") == 0)
    {
        if (__index < reservedParametersCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                reservedParameters[__index] = (float)dblValue; 
            }
        }
        else
        {
            SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __pos = 0;

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

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

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

    return __result;
}

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

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

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

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

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

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

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

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

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

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

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

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "module_version") == 0)
    {
        __result = module_version.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "parameter_version") == 0)
    {
        __result = parameter_version.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "spectralProc") == 0)
    {
        __result = spectralProc.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "fakeFlickerDet") == 0)
    {
        __result = fakeFlickerDet.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "frameSkipCtrl") == 0)
    {
        __result = frameSkipCtrl.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "flickerInfoUpdate") == 0)
    {
        __result = flickerInfoUpdate.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "flickerSampRateCtrl") == 0)
    {
        __result = flickerSampRateCtrl.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "module_version") == 0)
    {
        __result = module_version.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "parameter_version") == 0)
    {
        __result = parameter_version.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "spectralProc") == 0)
    {
        __result = spectralProc.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "fakeFlickerDet") == 0)
    {
        __result = fakeFlickerDet.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "frameSkipCtrl") == 0)
    {
        __result = frameSkipCtrl.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "flickerInfoUpdate") == 0)
    {
        __result = flickerInfoUpdate.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "flickerSampRateCtrl") == 0)
    {
        __result = flickerSampRateCtrl.SetValue(&__path[__pos], __value);
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

    return __result;
}

bool AFDSpectralSensorProcessorType::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 AFDSpectralSensorProcessorType::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 AFDSpectralSensorProcessorType::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 AFDSpectralSensorProcessorType::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 AFDSpectralSensorProcessorType::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 AFDSpectralSensorProcessorType::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
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AFDSpectralSensorProcessorTypeClass::AFDSpectralSensorProcessorTypeClass(
    const CHAR* const name)
    : ParameterModule(name, MAJOR, MINOR, PATCH, nullptr)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(spectralProc);
    PARAMETER_INITIALIZE(fakeFlickerDet);
    PARAMETER_INITIALIZE(frameSkipCtrl);
    PARAMETER_INITIALIZE(flickerInfoUpdate);
    PARAMETER_INITIALIZE(flickerSampRateCtrl);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AFDSpectralSensorProcessorTypeClass::AFDSpectralSensorProcessorTypeClass(
    const CHAR* const name,
    ModuleData* const moduleData)
    : ParameterModule(name, MAJOR, MINOR, PATCH, moduleData)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(spectralProc);
    PARAMETER_INITIALIZE(fakeFlickerDet);
    PARAMETER_INITIALIZE(frameSkipCtrl);
    PARAMETER_INITIALIZE(flickerInfoUpdate);
    PARAMETER_INITIALIZE(flickerSampRateCtrl);
}

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

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

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

    PARAMETER_INITIALIZE(start);
    PARAMETER_INITIALIZE(end);

    SYMBOL_TABLE_ENTRY_READ(entry, result, start, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, end, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(sampRate);
    PARAMETER_INITIALIZE(reservedParameters);

    SYMBOL_TABLE_ENTRY_READ(entry, result, sampRate, alignment)

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

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

            if (reservedParameters == nullptr)
            {
                if (result && reservedParametersCount > 0)
                {
                    reservedParameters = pointerEntry->ReadArray<float>(reservedParametersCount, alignment);
                    result = reservedParameters != nullptr;
                }
                if (!result || reservedParameters == nullptr)
                {
                    if (reservedParametersCount > 0)
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "Failed to allocate reservedParameters\n");
                    }
                    reservedParametersCount = 0;
                }
            }
        }
        if (reservedParameters == nullptr)
        {
            reservedParametersCount = 0;
        }
    }

    return result;
}

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

    PARAMETER_INITIALIZE(trigger1Lux);
    PARAMETER_INITIALIZE(trigger1Data);

    result = trigger1Lux.Load(entry, alignment);
    if (result)
    {
        result = trigger1Data.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(trigger1Data);


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

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

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

    return result;
}

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

    PARAMETER_INITIALIZE(sameFlickerFreqThres);
    PARAMETER_INITIALIZE(repACFlickerAmpRatioThres);
    PARAMETER_INITIALIZE(repFlickerAmpRatioThres);
    PARAMETER_INITIALIZE(mlprFlickerFreqThres);
    PARAMETER_INITIALIZE(lowerFlickerFreqRatioThres);
    PARAMETER_INITIALIZE(reservedParameters);

    SYMBOL_TABLE_ENTRY_READ(entry, result, sameFlickerFreqThres, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, repACFlickerAmpRatioThres, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, repFlickerAmpRatioThres, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, mlprFlickerFreqThres, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, lowerFlickerFreqRatioThres, alignment)

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

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

            if (reservedParameters == nullptr)
            {
                if (result && reservedParametersCount > 0)
                {
                    reservedParameters = pointerEntry->ReadArray<float>(reservedParametersCount, alignment);
                    result = reservedParameters != nullptr;
                }
                if (!result || reservedParameters == nullptr)
                {
                    if (reservedParametersCount > 0)
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "Failed to allocate reservedParameters\n");
                    }
                    reservedParametersCount = 0;
                }
            }
        }
        if (reservedParameters == nullptr)
        {
            reservedParametersCount = 0;
        }
    }

    return result;
}

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

    PARAMETER_INITIALIZE(trigger1Lux);
    PARAMETER_INITIALIZE(trigger1Data);

    result = trigger1Lux.Load(entry, alignment);
    if (result)
    {
        result = trigger1Data.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(trigger1Data);


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

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

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

    return result;
}

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

    PARAMETER_INITIALIZE(flickerFreqStableThres);
    PARAMETER_INITIALIZE(flickerMagStableThres);
    PARAMETER_INITIALIZE(flickerRawAvgStableThres);
    PARAMETER_INITIALIZE(flickerFreqChgThres);
    PARAMETER_INITIALIZE(scLockFrame);
    PARAMETER_INITIALIZE(rsLockFrame);
    PARAMETER_INITIALIZE(reservedParameters);

    SYMBOL_TABLE_ENTRY_READ(entry, result, flickerFreqStableThres, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, flickerMagStableThres, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, flickerRawAvgStableThres, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, flickerFreqChgThres, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, scLockFrame, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, rsLockFrame, alignment)

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

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

            if (reservedParameters == nullptr)
            {
                if (result && reservedParametersCount > 0)
                {
                    reservedParameters = pointerEntry->ReadArray<float>(reservedParametersCount, alignment);
                    result = reservedParameters != nullptr;
                }
                if (!result || reservedParameters == nullptr)
                {
                    if (reservedParametersCount > 0)
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "Failed to allocate reservedParameters\n");
                    }
                    reservedParametersCount = 0;
                }
            }
        }
        if (reservedParameters == nullptr)
        {
            reservedParametersCount = 0;
        }
    }

    return result;
}

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

    PARAMETER_INITIALIZE(trigger1Lux);
    PARAMETER_INITIALIZE(trigger1Data);

    result = trigger1Lux.Load(entry, alignment);
    if (result)
    {
        result = trigger1Data.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(trigger1Data);


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

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

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

    return result;
}

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

    PARAMETER_INITIALIZE(minFlickerAmpRatio);
    PARAMETER_INITIALIZE(minFlickerAmpACRatio);
    PARAMETER_INITIALIZE(minFlickerAmpRatioHysteresis);
    PARAMETER_INITIALIZE(minFlickerAmpACRatioHysteresis);
    PARAMETER_INITIALIZE(reservedParameters);

    SYMBOL_TABLE_ENTRY_READ(entry, result, minFlickerAmpRatio, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, minFlickerAmpACRatio, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, minFlickerAmpRatioHysteresis, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, minFlickerAmpACRatioHysteresis, alignment)

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

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

            if (reservedParameters == nullptr)
            {
                if (result && reservedParametersCount > 0)
                {
                    reservedParameters = pointerEntry->ReadArray<float>(reservedParametersCount, alignment);
                    result = reservedParameters != nullptr;
                }
                if (!result || reservedParameters == nullptr)
                {
                    if (reservedParametersCount > 0)
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "Failed to allocate reservedParameters\n");
                    }
                    reservedParametersCount = 0;
                }
            }
        }
        if (reservedParameters == nullptr)
        {
            reservedParametersCount = 0;
        }
    }

    return result;
}

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

    PARAMETER_INITIALIZE(trigger1Lux);
    PARAMETER_INITIALIZE(trigger1Data);

    result = trigger1Lux.Load(entry, alignment);
    if (result)
    {
        result = trigger1Data.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(trigger1Data);


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

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

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

    return result;
}

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

    PARAMETER_INITIALIZE(skipRowSumAFDEnable);
    PARAMETER_INITIALIZE(initFlickerFreq);
    PARAMETER_INITIALIZE(reservedParameters);

    SYMBOL_TABLE_ENTRY_READ(entry, result, skipRowSumAFDEnable, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, initFlickerFreq, alignment)

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

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

            if (reservedParameters == nullptr)
            {
                if (result && reservedParametersCount > 0)
                {
                    reservedParameters = pointerEntry->ReadArray<float>(reservedParametersCount, alignment);
                    result = reservedParameters != nullptr;
                }
                if (!result || reservedParameters == nullptr)
                {
                    if (reservedParametersCount > 0)
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "Failed to allocate reservedParameters\n");
                    }
                    reservedParametersCount = 0;
                }
            }
        }
        if (reservedParameters == nullptr)
        {
            reservedParametersCount = 0;
        }
    }

    return result;
}

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

    PARAMETER_INITIALIZE(enable);
    PARAMETER_INITIALIZE(scdEnable);
    PARAMETER_INITIALIZE(tempConvSpeed);
    PARAMETER_INITIALIZE(minAntiFlickerFreq);
    PARAMETER_INITIALIZE(maxAntiFlickerFreq);
    PARAMETER_INITIALIZE(minWideBandAntiFlickerFreq);
    PARAMETER_INITIALIZE(maxWideBandAntiFlickerFreq);
    PARAMETER_INITIALIZE(advancedProc);
    PARAMETER_INITIALIZE(reservedParameters);

    SYMBOL_TABLE_ENTRY_READ(entry, result, enable, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, scdEnable, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, tempConvSpeed, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, minAntiFlickerFreq, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, maxAntiFlickerFreq, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, minWideBandAntiFlickerFreq, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, maxWideBandAntiFlickerFreq, alignment)
    if (result)
    {
        result = advancedProc.Load(entry, alignment);
    }

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

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

            if (reservedParameters == nullptr)
            {
                if (result && reservedParametersCount > 0)
                {
                    reservedParameters = pointerEntry->ReadArray<float>(reservedParametersCount, alignment);
                    result = reservedParameters != nullptr;
                }
                if (!result || reservedParameters == nullptr)
                {
                    if (reservedParametersCount > 0)
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "Failed to allocate reservedParameters\n");
                    }
                    reservedParametersCount = 0;
                }
            }
        }
        if (reservedParameters == nullptr)
        {
            reservedParametersCount = 0;
        }
    }

    return result;
}

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

    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(spectralProc);
    PARAMETER_INITIALIZE(fakeFlickerDet);
    PARAMETER_INITIALIZE(frameSkipCtrl);
    PARAMETER_INITIALIZE(flickerInfoUpdate);
    PARAMETER_INITIALIZE(flickerSampRateCtrl);

    result = module_version.Load(entry, alignment);
    if (result)
    {
        result = parameter_version.Load(entry, alignment);
    }
    if (result)
    {
        result = spectralProc.Load(entry, alignment);
    }
    if (result)
    {
        result = fakeFlickerDet.Load(entry, alignment);
    }
    if (result)
    {
        result = frameSkipCtrl.Load(entry, alignment);
    }
    if (result)
    {
        result = flickerInfoUpdate.Load(entry, alignment);
    }
    if (result)
    {
        result = flickerSampRateCtrl.Load(entry, alignment);
    }

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load module_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool AFDSpectralSensorProcessorType::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 AFDSpectralSensorProcessorType::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 FlickerSamplingRateControlCoreDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FlickerSamplingRateControlCoreDataType::Unload(ParameterFileSymbolTable* const __table)
{
    if (__table != nullptr && __table->ReleaseDupObject(reservedParameters))
    {
        PARAMETER_DELETE[] reservedParameters;
    }
    reservedParameters = nullptr;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload FlickerSamplingRateControlDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FlickerSamplingRateControlDataType::Unload(ParameterFileSymbolTable* const __table)
{
    trigger1Data.Unload(__table);
}

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload FlickerInfoUpdateDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FlickerInfoUpdateDataType::Unload(ParameterFileSymbolTable* const __table)
{
    trigger1Data.Unload(__table);
}

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload FrameSkipControlDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FrameSkipControlDataType::Unload(ParameterFileSymbolTable* const __table)
{
    trigger1Data.Unload(__table);
}

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload FakeFlickerDetectionDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FakeFlickerDetectionDataType::Unload(ParameterFileSymbolTable* const __table)
{
    trigger1Data.Unload(__table);
}

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

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload AFDSpectralSensorProcessorType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AFDSpectralSensorProcessorType::Unload(ParameterFileSymbolTable* const __table)
{
    parameter_version.Unload(__table);
    spectralProc.Unload(__table);
    fakeFlickerDet.Unload(__table);
    frameSkipCtrl.Unload(__table);
    flickerInfoUpdate.Unload(__table);
    flickerSampRateCtrl.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload parameter_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AFDSpectralSensorProcessorType::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 AFDSpectralSensorProcessorType::Release()
{
    ((AFDSpectralSensorProcessorTypeClass*)this)->Release();
}

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

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

    return (ParameterModule*)cls;
}

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

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

AFDSPECTRALSENSOR_NAMESPACE_END
