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

#include "aecxspectralsensor.h"
#include "parametersetmanager.h"

AECXSPECTRALSENSOR_NAMESPACE_BEGIN

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// SetValue/GetValue Functions
/// Gets or sets the requested value
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
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, "sameFlickerFreqencyChangeTolerance") == 0)
    {
        ParameterUtils::DoubleToString((double)sameFlickerFreqencyChangeTolerance, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "replaceACFlickerAmplitudeRatioThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)replaceACFlickerAmplitudeRatioThreshold, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "replaceNormalFlickerAmplitudeRatioThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)replaceNormalFlickerAmplitudeRatioThreshold, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "multipleRelationFlickerFreqThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)multipleRelationFlickerFreqThreshold, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "lowerFlickerFreqSelectRatioThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)lowerFlickerFreqSelectRatioThreshold, __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, "sameFlickerFreqencyChangeTolerance") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            sameFlickerFreqencyChangeTolerance = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "replaceACFlickerAmplitudeRatioThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            replaceACFlickerAmplitudeRatioThreshold = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "replaceNormalFlickerAmplitudeRatioThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            replaceNormalFlickerAmplitudeRatioThreshold = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "multipleRelationFlickerFreqThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            multipleRelationFlickerFreqThreshold = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "lowerFlickerFreqSelectRatioThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            lowerFlickerFreqSelectRatioThreshold = (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);

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

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

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

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

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

    // 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 FrameSkipCtrlCoreDataType::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, "flickerFreStableTorlerance") == 0)
    {
        ParameterUtils::DoubleToString((double)flickerFreStableTorlerance, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "flickerMagStableTorlerance") == 0)
    {
        ParameterUtils::DoubleToString((double)flickerMagStableTorlerance, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "flickerChanAvgStableTorlerance") == 0)
    {
        ParameterUtils::DoubleToString((double)flickerChanAvgStableTorlerance, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "flickerFreChangeThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)flickerFreChangeThreshold, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "flickerFreqAmpShockRatioThres") == 0)
    {
        ParameterUtils::DoubleToString((double)flickerFreqAmpShockRatioThres, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "lockFrameNumForScenesChange") == 0)
    {
        ParameterUtils::DoubleToString((double)lockFrameNumForScenesChange, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "resetSettingLockFrame") == 0)
    {
        ParameterUtils::DoubleToString((double)resetSettingLockFrame, __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 FrameSkipCtrlCoreDataType::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, "flickerFreStableTorlerance") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            flickerFreStableTorlerance = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "flickerMagStableTorlerance") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            flickerMagStableTorlerance = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "flickerChanAvgStableTorlerance") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            flickerChanAvgStableTorlerance = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "flickerFreChangeThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            flickerFreChangeThreshold = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "flickerFreqAmpShockRatioThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            flickerFreqAmpShockRatioThres = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "lockFrameNumForScenesChange") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            lockFrameNumForScenesChange = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "resetSettingLockFrame") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            resetSettingLockFrame = (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 FrameSkipCtrlCoreDataType::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);

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

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

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

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

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

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

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

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

    return __result;
}

bool FrameSkipCtrlDataType::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 FrameSkipCtrlDataType::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 FrameSkipCtrlDataType::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 FrameSkipCtrlType::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 FrameSkipCtrlType::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 FrameSkipCtrlType::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 FakeFlickerDectionCoreDataType::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, "minFlickerChanWaveRatio") == 0)
    {
        ParameterUtils::DoubleToString((double)minFlickerChanWaveRatio, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "minFlickerMag") == 0)
    {
        ParameterUtils::DoubleToString((double)minFlickerMag, __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 FakeFlickerDectionCoreDataType::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, "minFlickerChanWaveRatio") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minFlickerChanWaveRatio = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "minFlickerMag") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minFlickerMag = (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 FakeFlickerDectionCoreDataType::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);

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

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

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

    return __result;
}

bool FakeFlickerDectionDataType::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 FakeFlickerDectionDataType::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 FakeFlickerDectionDataType::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 FakeFlickerDectionType::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 FakeFlickerDectionType::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 FakeFlickerDectionType::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 SpectralSensorCommParamType::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

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

    if (PARAMETER_STRCMP(__name, "Enable") == 0)
    {
        ParameterUtils::DoubleToString((double)Enable, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "scenesChangeDetectionEnable") == 0)
    {
        ParameterUtils::DoubleToString((double)scenesChangeDetectionEnable, __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, "minAntiFlickerFrequency") == 0)
    {
        ParameterUtils::DoubleToString((double)minAntiFlickerFrequency, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "maxAntiFlickerFrequency") == 0)
    {
        ParameterUtils::DoubleToString((double)maxAntiFlickerFrequency, __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 SpectralSensorCommParamType::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

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

    if (PARAMETER_STRCMP(__name, "Enable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            Enable = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "scenesChangeDetectionEnable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            scenesChangeDetectionEnable = (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, "minAntiFlickerFrequency") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minAntiFlickerFrequency = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "maxAntiFlickerFrequency") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            maxAntiFlickerFrequency = (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 SpectralSensorCommParamType::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

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

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

    // scenesChangeDetectionEnable
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("scenesChangeDetectionEnable", ParameterParserDataType::Boolean, (double)scenesChangeDetectionEnable, 0));
    }
    else if (PARAMETER_STRCMP(__name, "scenesChangeDetectionEnable") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Boolean, (double)scenesChangeDetectionEnable, 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));
    }

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

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

    // FakeFlickerDection
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("FakeFlickerDection", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "FakeFlickerDection") == 0)
    {
        __result = FakeFlickerDection.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);
    }

    return __result;
}

bool AECXSpectralSensorType::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 AECXSpectralSensorType::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 AECXSpectralSensorType::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 AECXSpectralSensorType::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 AECXSpectralSensorType::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 AECXSpectralSensorType::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
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AECXSpectralSensorTypeClass::AECXSpectralSensorTypeClass(
    const CHAR* const name)
    : ParameterModule(name, MAJOR, MINOR, PATCH, nullptr)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(SpectralSensorCommParam);
    PARAMETER_INITIALIZE(FakeFlickerDection);
    PARAMETER_INITIALIZE(FrameSkipCtrl);
    PARAMETER_INITIALIZE(FlickerInfoUpdate);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AECXSpectralSensorTypeClass::AECXSpectralSensorTypeClass(
    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(SpectralSensorCommParam);
    PARAMETER_INITIALIZE(FakeFlickerDection);
    PARAMETER_INITIALIZE(FrameSkipCtrl);
    PARAMETER_INITIALIZE(FlickerInfoUpdate);
}

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

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

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

    PARAMETER_INITIALIZE(sameFlickerFreqencyChangeTolerance);
    PARAMETER_INITIALIZE(replaceACFlickerAmplitudeRatioThreshold);
    PARAMETER_INITIALIZE(replaceNormalFlickerAmplitudeRatioThreshold);
    PARAMETER_INITIALIZE(multipleRelationFlickerFreqThreshold);
    PARAMETER_INITIALIZE(lowerFlickerFreqSelectRatioThreshold);
    PARAMETER_INITIALIZE(reservedParameters);

    SYMBOL_TABLE_ENTRY_READ(entry, result, sameFlickerFreqencyChangeTolerance, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, replaceACFlickerAmplitudeRatioThreshold, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, replaceNormalFlickerAmplitudeRatioThreshold, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, multipleRelationFlickerFreqThreshold, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, lowerFlickerFreqSelectRatioThreshold, 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 FrameSkipCtrlCoreDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool FrameSkipCtrlCoreDataType::Load(
    ParameterFileSymbolTableEntry* const entry,
    BYTE const alignment)
{
    bool result = true;

    PARAMETER_INITIALIZE(flickerFreStableTorlerance);
    PARAMETER_INITIALIZE(flickerMagStableTorlerance);
    PARAMETER_INITIALIZE(flickerChanAvgStableTorlerance);
    PARAMETER_INITIALIZE(flickerFreChangeThreshold);
    PARAMETER_INITIALIZE(flickerFreqAmpShockRatioThres);
    PARAMETER_INITIALIZE(lockFrameNumForScenesChange);
    PARAMETER_INITIALIZE(resetSettingLockFrame);
    PARAMETER_INITIALIZE(reservedParameters);

    SYMBOL_TABLE_ENTRY_READ(entry, result, flickerFreStableTorlerance, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, flickerMagStableTorlerance, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, flickerChanAvgStableTorlerance, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, flickerFreChangeThreshold, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, flickerFreqAmpShockRatioThres, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, lockFrameNumForScenesChange, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, resetSettingLockFrame, 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 FrameSkipCtrlDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool FrameSkipCtrlDataType::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 FrameSkipCtrlType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool FrameSkipCtrlType::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 = (FrameSkipCtrlDataType*)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 FrameSkipCtrlDataType[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 FakeFlickerDectionCoreDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool FakeFlickerDectionCoreDataType::Load(
    ParameterFileSymbolTableEntry* const entry,
    BYTE const alignment)
{
    bool result = true;

    PARAMETER_INITIALIZE(minFlickerChanWaveRatio);
    PARAMETER_INITIALIZE(minFlickerMag);
    PARAMETER_INITIALIZE(reservedParameters);

    SYMBOL_TABLE_ENTRY_READ(entry, result, minFlickerChanWaveRatio, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, minFlickerMag, 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 FakeFlickerDectionDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool FakeFlickerDectionDataType::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 FakeFlickerDectionType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool FakeFlickerDectionType::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 = (FakeFlickerDectionDataType*)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 FakeFlickerDectionDataType[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 SpectralSensorCommParamType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool SpectralSensorCommParamType::Load(
    ParameterFileSymbolTableEntry* const entry,
    BYTE const alignment)
{
    bool result = true;

    PARAMETER_INITIALIZE(Enable);
    PARAMETER_INITIALIZE(scenesChangeDetectionEnable);
    PARAMETER_INITIALIZE(tempConvSpeed);
    PARAMETER_INITIALIZE(minAntiFlickerFrequency);
    PARAMETER_INITIALIZE(maxAntiFlickerFrequency);
    PARAMETER_INITIALIZE(reservedParameters);

    SYMBOL_TABLE_ENTRY_READ(entry, result, Enable, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, scenesChangeDetectionEnable, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, tempConvSpeed, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, minAntiFlickerFrequency, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, maxAntiFlickerFrequency, 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 AECXSpectralSensorType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool AECXSpectralSensorType::Load(
    ParameterFileSymbolTableEntry* const entry,
    BYTE const alignment)
{
    bool result = true;

    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(SpectralSensorCommParam);
    PARAMETER_INITIALIZE(FakeFlickerDection);
    PARAMETER_INITIALIZE(FrameSkipCtrl);
    PARAMETER_INITIALIZE(FlickerInfoUpdate);

    result = module_version.Load(entry, alignment);
    if (result)
    {
        result = parameter_version.Load(entry, alignment);
    }
    if (result)
    {
        result = SpectralSensorCommParam.Load(entry, alignment);
    }
    if (result)
    {
        result = FakeFlickerDection.Load(entry, alignment);
    }
    if (result)
    {
        result = FrameSkipCtrl.Load(entry, alignment);
    }
    if (result)
    {
        result = FlickerInfoUpdate.Load(entry, alignment);
    }

    return result;
}

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

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

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

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload AECXSpectralSensorType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXSpectralSensorType::Unload(ParameterFileSymbolTable* const __table)
{
    parameter_version.Unload(__table);
    SpectralSensorCommParam.Unload(__table);
    FakeFlickerDection.Unload(__table);
    FrameSkipCtrl.Unload(__table);
    FlickerInfoUpdate.Unload(__table);
}

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

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

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

    return (ParameterModule*)cls;
}

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

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

AECXSPECTRALSENSOR_NAMESPACE_END
