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

#include "aecconvergence.h"
#include "parametersetmanager.h"

AECCONVERGENCE_NAMESPACE_BEGIN

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

    return __result;
}

bool BrightRatioStrengthType::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, "brightRatioAdjStrength") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            brightRatioAdjStrength = (float)dblValue; 
        }
    }

    return __result;
}

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

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

    return __result;
}

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

    return __result;
}

bool DarkRatioStrengthType::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, "darkRatioAdjStrength") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            darkRatioAdjStrength = (float)dblValue; 
        }
    }

    return __result;
}

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

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

    return __result;
}

bool BrightDarkConvAdjType::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, "enableBrightDarkConvergence") == 0)
    {
        ParameterUtils::DoubleToString((double)enableBrightDarkConvergence, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "darkAdjustment") == 0)
    {
        if (__index < darkAdjustmentCount)
        {
            __result = darkAdjustment[__index].GetValue(&__path[__pos], __value, __size);
        }
    }
    else if (PARAMETER_STRCMP(__name, "brightAdjustment") == 0)
    {
        if (__index < brightAdjustmentCount)
        {
            __result = brightAdjustment[__index].GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool BrightDarkConvAdjType::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, "enableBrightDarkConvergence") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enableBrightDarkConvergence = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "darkAdjustment") == 0)
    {
        if (__index < darkAdjustmentCount)
        {
            __result = darkAdjustment[__index].SetValue(&__path[__pos], __value);
        }
    }
    else if (PARAMETER_STRCMP(__name, "brightAdjustment") == 0)
    {
        if (__index < brightAdjustmentCount)
        {
            __result = brightAdjustment[__index].SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

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

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

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

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

    return __result;
}

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

    return __result;
}

bool PredictiveSaturationZoneDataType::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, "stepSize") == 0)
    {
        __result = stepSize.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "predictiveFactor") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            predictiveFactor = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "decay") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            decay = (float)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

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

    return __result;
}

bool PredictiveConvType::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, "enablePredictiveConvergence") == 0)
    {
        ParameterUtils::DoubleToString((double)enablePredictiveConvergence, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "FPSThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)FPSThreshold, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "disableWhenDRC") == 0)
    {
        ParameterUtils::DoubleToString((double)disableWhenDRC, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "maxGain") == 0)
    {
        ParameterUtils::DoubleToString((double)maxGain, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "predictiveTrigger") == 0)
    {
        if (__index < predictiveTriggerCount)
        {
            __result = predictiveTrigger[__index].GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool PredictiveConvType::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, "enablePredictiveConvergence") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enablePredictiveConvergence = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "FPSThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            FPSThreshold = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "disableWhenDRC") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            disableWhenDRC = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "maxGain") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            maxGain = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "predictiveTrigger") == 0)
    {
        if (__index < predictiveTriggerCount)
        {
            __result = predictiveTrigger[__index].SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

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

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

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

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

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

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

    return __result;
}

bool FastConvType::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, "tolMultUnitStepSize") == 0)
    {
        ParameterUtils::DoubleToString((double)tolMultUnitStepSize, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "frameSkipMethod") == 0)
    {
        ParameterUtils::DoubleToString((double)(UINT32)frameSkipMethod, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "aggressiveness") == 0)
    {
        ParameterUtils::DoubleToString((double)aggressiveness, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "enableBrightDarkSpeedAdj") == 0)
    {
        ParameterUtils::DoubleToString((double)enableBrightDarkSpeedAdj, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "darkRatioAdjStrength") == 0)
    {
        ParameterUtils::DoubleToString((double)darkRatioAdjStrength, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "brightRatioAdjStrength") == 0)
    {
        ParameterUtils::DoubleToString((double)brightRatioAdjStrength, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "thresDarkExpIndexDelta") == 0)
    {
        ParameterUtils::DoubleToString((double)thresDarkExpIndexDelta, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "thresBrightExpIndexDelta") == 0)
    {
        ParameterUtils::DoubleToString((double)thresBrightExpIndexDelta, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "ADRCConvSpeed") == 0)
    {
        ParameterUtils::DoubleToString((double)ADRCConvSpeed, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "predictiveConvergence") == 0)
    {
        __result = predictiveConvergence.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "brightDarkConvAdj") == 0)
    {
        __result = brightDarkConvAdj.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool FastConvType::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, "tolMultUnitStepSize") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            tolMultUnitStepSize = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "frameSkipMethod") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            frameSkipMethod = (aecglobalelements::ConvFrameSkipType)(UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "aggressiveness") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            aggressiveness = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "enableBrightDarkSpeedAdj") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enableBrightDarkSpeedAdj = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "darkRatioAdjStrength") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            darkRatioAdjStrength = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "brightRatioAdjStrength") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            brightRatioAdjStrength = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "thresDarkExpIndexDelta") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            thresDarkExpIndexDelta = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "thresBrightExpIndexDelta") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            thresBrightExpIndexDelta = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "ADRCConvSpeed") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            ADRCConvSpeed = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "predictiveConvergence") == 0)
    {
        __result = predictiveConvergence.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "brightDarkConvAdj") == 0)
    {
        __result = brightDarkConvAdj.SetValue(&__path[__pos], __value);
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

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

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

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

    return __result;
}

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

    return __result;
}

bool TorchConvergenceType::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, "enableTorchOffOn") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enableTorchOffOn = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "enableTorchOnOff") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enableTorchOnOff = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "minFrameCount") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minFrameCount = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "conv") == 0)
    {
        __result = conv.SetValue(&__path[__pos], __value);
    }

    return __result;
}

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

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

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

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

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

    return __result;
}

bool SlowConvHoldTimeType::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, "enableHoldTime") == 0)
    {
        ParameterUtils::DoubleToString((double)enableHoldTime, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "thresAbsExpDelta") == 0)
    {
        __result = thresAbsExpDelta.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "expDeltaBasedHTAdjFactor") == 0)
    {
        __result = expDeltaBasedHTAdjFactor.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "tolAdjFactor") == 0)
    {
        ParameterUtils::DoubleToString((double)tolAdjFactor, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "holdTimeEnterDelay") == 0)
    {
        ParameterUtils::DoubleToString((double)holdTimeEnterDelay, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "maxHoldTime") == 0)
    {
        ParameterUtils::DoubleToString((double)maxHoldTime, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "enableGyroBasedHT") == 0)
    {
        ParameterUtils::DoubleToString((double)enableGyroBasedHT, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "thresGyroMagnitude") == 0)
    {
        __result = thresGyroMagnitude.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "gyroBasedHTAdjFactor") == 0)
    {
        __result = gyroBasedHTAdjFactor.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool SlowConvHoldTimeType::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, "enableHoldTime") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enableHoldTime = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "thresAbsExpDelta") == 0)
    {
        __result = thresAbsExpDelta.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "expDeltaBasedHTAdjFactor") == 0)
    {
        __result = expDeltaBasedHTAdjFactor.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "tolAdjFactor") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            tolAdjFactor = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "holdTimeEnterDelay") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            holdTimeEnterDelay = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "maxHoldTime") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            maxHoldTime = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "enableGyroBasedHT") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enableGyroBasedHT = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "thresGyroMagnitude") == 0)
    {
        __result = thresGyroMagnitude.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "gyroBasedHTAdjFactor") == 0)
    {
        __result = gyroBasedHTAdjFactor.SetValue(&__path[__pos], __value);
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

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

    return __result;
}

bool SlowConvType::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, "tolMultUnitStepSize") == 0)
    {
        ParameterUtils::DoubleToString((double)tolMultUnitStepSize, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "frameSkipMethod") == 0)
    {
        ParameterUtils::DoubleToString((double)(UINT32)frameSkipMethod, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "stepFactorWhenFrameSkipEnabled") == 0)
    {
        ParameterUtils::DoubleToString((double)stepFactorWhenFrameSkipEnabled, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "convSpeed") == 0)
    {
        ParameterUtils::DoubleToString((double)convSpeed, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "refFrameRate") == 0)
    {
        ParameterUtils::DoubleToString((double)refFrameRate, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "stepRegular") == 0)
    {
        __result = stepRegular.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "stepDark") == 0)
    {
        __result = stepDark.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "stepBright") == 0)
    {
        __result = stepBright.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "thresSlowDownAbsExpIndexDeltaDark") == 0)
    {
        __result = thresSlowDownAbsExpIndexDeltaDark.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "thresSlowDownAbsExpIndexDeltaBright") == 0)
    {
        __result = thresSlowDownAbsExpIndexDeltaBright.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "maxRawStepAdj") == 0)
    {
        ParameterUtils::DoubleToString((double)maxRawStepAdj, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "tolExpIndexDeltaForceAdj") == 0)
    {
        ParameterUtils::DoubleToString((double)tolExpIndexDeltaForceAdj, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "thresNumBrightRgn") == 0)
    {
        ParameterUtils::DoubleToString((double)thresNumBrightRgn, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "thresNumDarkRgn") == 0)
    {
        ParameterUtils::DoubleToString((double)thresNumDarkRgn, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "holdTimeTuning") == 0)
    {
        __result = holdTimeTuning.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "ADRCConvSpeed") == 0)
    {
        ParameterUtils::DoubleToString((double)ADRCConvSpeed, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "predictiveConvergence") == 0)
    {
        __result = predictiveConvergence.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool SlowConvType::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, "tolMultUnitStepSize") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            tolMultUnitStepSize = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "frameSkipMethod") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            frameSkipMethod = (aecglobalelements::ConvFrameSkipType)(UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "stepFactorWhenFrameSkipEnabled") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            stepFactorWhenFrameSkipEnabled = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "convSpeed") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            convSpeed = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "refFrameRate") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            refFrameRate = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "stepRegular") == 0)
    {
        __result = stepRegular.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "stepDark") == 0)
    {
        __result = stepDark.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "stepBright") == 0)
    {
        __result = stepBright.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "thresSlowDownAbsExpIndexDeltaDark") == 0)
    {
        __result = thresSlowDownAbsExpIndexDeltaDark.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "thresSlowDownAbsExpIndexDeltaBright") == 0)
    {
        __result = thresSlowDownAbsExpIndexDeltaBright.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "maxRawStepAdj") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            maxRawStepAdj = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "tolExpIndexDeltaForceAdj") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            tolExpIndexDeltaForceAdj = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "thresNumBrightRgn") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            thresNumBrightRgn = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "thresNumDarkRgn") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            thresNumDarkRgn = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "holdTimeTuning") == 0)
    {
        __result = holdTimeTuning.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "ADRCConvSpeed") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            ADRCConvSpeed = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "predictiveConvergence") == 0)
    {
        __result = predictiveConvergence.SetValue(&__path[__pos], __value);
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    return __result;
}

bool AECCoreConvergenceType::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, "algoSelect") == 0)
    {
        ParameterUtils::DoubleToString((double)(UINT32)algoSelect, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "fastConv") == 0)
    {
        __result = fastConv.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "slowConv") == 0)
    {
        __result = slowConv.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "unitStepSize") == 0)
    {
        ParameterUtils::DoubleToString((double)unitStepSize, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "enableConvergeGainFirst") == 0)
    {
        ParameterUtils::DoubleToString((double)enableConvergeGainFirst, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "settledMultiplier") == 0)
    {
        ParameterUtils::DoubleToString((double)settledMultiplier, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "torchConv") == 0)
    {
        __result = torchConv.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool AECCoreConvergenceType::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, "algoSelect") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            algoSelect = (aecglobalelements::AECConvAlgoType)(UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "fastConv") == 0)
    {
        __result = fastConv.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "slowConv") == 0)
    {
        __result = slowConv.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "unitStepSize") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            unitStepSize = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "enableConvergeGainFirst") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enableConvergeGainFirst = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "settledMultiplier") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            settledMultiplier = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "torchConv") == 0)
    {
        __result = torchConv.SetValue(&__path[__pos], __value);
    }

    return __result;
}

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

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

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

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

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

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

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

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

    return __result;
}

bool AECCoreConvergenceType::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 AECCoreConvergenceType::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 AECCoreConvergenceType::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 AECCoreConvergenceType::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 AECCoreConvergenceType::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 AECCoreConvergenceType::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
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AECCoreConvergenceTypeClass::AECCoreConvergenceTypeClass(
    const CHAR* const name)
    : ParameterModule(name, MAJOR, MINOR, PATCH, nullptr)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(algoSelect);
    PARAMETER_INITIALIZE(fastConv);
    PARAMETER_INITIALIZE(slowConv);
    PARAMETER_INITIALIZE(unitStepSize);
    PARAMETER_INITIALIZE(enableConvergeGainFirst);
    PARAMETER_INITIALIZE(settledMultiplier);
    PARAMETER_INITIALIZE(torchConv);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AECCoreConvergenceTypeClass::AECCoreConvergenceTypeClass(
    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(algoSelect);
    PARAMETER_INITIALIZE(fastConv);
    PARAMETER_INITIALIZE(slowConv);
    PARAMETER_INITIALIZE(unitStepSize);
    PARAMETER_INITIALIZE(enableConvergeGainFirst);
    PARAMETER_INITIALIZE(settledMultiplier);
    PARAMETER_INITIALIZE(torchConv);
}

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

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

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

    PARAMETER_INITIALIZE(brightRatioAdjStrength);

    SYMBOL_TABLE_ENTRY_READ(entry, result, brightRatioAdjStrength, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(zoneTrigger);
    PARAMETER_INITIALIZE(zoneData);

    result = zoneTrigger.Load(entry, alignment);

    // Reading Array zoneData from symbol table
    // Do not check result value here because the count value needs to be initialized in this block
    {
        zoneDataCount = 0;
        SYMBOL_TABLE_ENTRY_READ(entry, result, zoneDataCount, 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)
        {
            zoneDataID = pointerEntry->ID;
            DupObjInfo* zoneDataDupInfo = pointerEntry->GetDupObject(zoneDataCount, file, line);
            if (zoneDataDupInfo != nullptr && zoneDataDupInfo->Object != nullptr)
            {
                zoneData = (BrightRatioStrengthType*)zoneDataDupInfo->Object;
                if (zoneData == nullptr)
                {
                    if (zoneDataDupInfo->File != nullptr)
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "zoneData duplicate found but object is nullptr: %s:%d, RefCount: %d\n",
                            zoneDataDupInfo->File, zoneDataDupInfo->Line, zoneDataDupInfo->RefCount);
                    }
                    else
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "zoneData duplicate found but Object is nullptr: <nullptr file ptr>:%d, RefCount: %d\n",
                            zoneDataDupInfo->Line, zoneDataDupInfo->RefCount);
                    }
                }
            }

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

    return result;
}

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

    PARAMETER_INITIALIZE(darkRatioAdjStrength);

    SYMBOL_TABLE_ENTRY_READ(entry, result, darkRatioAdjStrength, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(zoneTrigger);
    PARAMETER_INITIALIZE(zoneData);

    result = zoneTrigger.Load(entry, alignment);

    // Reading Array zoneData from symbol table
    // Do not check result value here because the count value needs to be initialized in this block
    {
        zoneDataCount = 0;
        SYMBOL_TABLE_ENTRY_READ(entry, result, zoneDataCount, 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)
        {
            zoneDataID = pointerEntry->ID;
            DupObjInfo* zoneDataDupInfo = pointerEntry->GetDupObject(zoneDataCount, file, line);
            if (zoneDataDupInfo != nullptr && zoneDataDupInfo->Object != nullptr)
            {
                zoneData = (DarkRatioStrengthType*)zoneDataDupInfo->Object;
                if (zoneData == nullptr)
                {
                    if (zoneDataDupInfo->File != nullptr)
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "zoneData duplicate found but object is nullptr: %s:%d, RefCount: %d\n",
                            zoneDataDupInfo->File, zoneDataDupInfo->Line, zoneDataDupInfo->RefCount);
                    }
                    else
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "zoneData duplicate found but Object is nullptr: <nullptr file ptr>:%d, RefCount: %d\n",
                            zoneDataDupInfo->Line, zoneDataDupInfo->RefCount);
                    }
                }
            }

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

    return result;
}

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

    PARAMETER_INITIALIZE(enableBrightDarkConvergence);
    PARAMETER_INITIALIZE(darkAdjustment);
    PARAMETER_INITIALIZE(brightAdjustment);

    SYMBOL_TABLE_ENTRY_READ(entry, result, enableBrightDarkConvergence, alignment)

    // Reading Array darkAdjustment from symbol table
    // Do not check result value here because the count value needs to be initialized in this block
    {
        darkAdjustmentCount = 0;
        SYMBOL_TABLE_ENTRY_READ(entry, result, darkAdjustmentCount, 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)
        {
            darkAdjustmentID = pointerEntry->ID;
            DupObjInfo* darkAdjustmentDupInfo = pointerEntry->GetDupObject(darkAdjustmentCount, file, line);
            if (darkAdjustmentDupInfo != nullptr && darkAdjustmentDupInfo->Object != nullptr)
            {
                darkAdjustment = (DarkAdjustmentType*)darkAdjustmentDupInfo->Object;
                if (darkAdjustment == nullptr)
                {
                    if (darkAdjustmentDupInfo->File != nullptr)
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "darkAdjustment duplicate found but object is nullptr: %s:%d, RefCount: %d\n",
                            darkAdjustmentDupInfo->File, darkAdjustmentDupInfo->Line, darkAdjustmentDupInfo->RefCount);
                    }
                    else
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "darkAdjustment duplicate found but Object is nullptr: <nullptr file ptr>:%d, RefCount: %d\n",
                            darkAdjustmentDupInfo->Line, darkAdjustmentDupInfo->RefCount);
                    }
                }
            }

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

    // Reading Array brightAdjustment from symbol table
    // Do not check result value here because the count value needs to be initialized in this block
    {
        brightAdjustmentCount = 0;
        SYMBOL_TABLE_ENTRY_READ(entry, result, brightAdjustmentCount, 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)
        {
            brightAdjustmentID = pointerEntry->ID;
            DupObjInfo* brightAdjustmentDupInfo = pointerEntry->GetDupObject(brightAdjustmentCount, file, line);
            if (brightAdjustmentDupInfo != nullptr && brightAdjustmentDupInfo->Object != nullptr)
            {
                brightAdjustment = (BrightAdjustmentType*)brightAdjustmentDupInfo->Object;
                if (brightAdjustment == nullptr)
                {
                    if (brightAdjustmentDupInfo->File != nullptr)
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "brightAdjustment duplicate found but object is nullptr: %s:%d, RefCount: %d\n",
                            brightAdjustmentDupInfo->File, brightAdjustmentDupInfo->Line, brightAdjustmentDupInfo->RefCount);
                    }
                    else
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "brightAdjustment duplicate found but Object is nullptr: <nullptr file ptr>:%d, RefCount: %d\n",
                            brightAdjustmentDupInfo->Line, brightAdjustmentDupInfo->RefCount);
                    }
                }
            }

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

    return result;
}

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

    PARAMETER_INITIALIZE(stepSize);
    PARAMETER_INITIALIZE(predictiveFactor);
    PARAMETER_INITIALIZE(decay);

    result = stepSize.Load(entry, alignment);
    SYMBOL_TABLE_ENTRY_READ(entry, result, predictiveFactor, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, decay, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(zoneTrigger);
    PARAMETER_INITIALIZE(zoneData);

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

    return result;
}

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

    PARAMETER_INITIALIZE(zoneTrigger);
    PARAMETER_INITIALIZE(zoneData);

    result = zoneTrigger.Load(entry, alignment);

    // Reading Array zoneData from symbol table
    // Do not check result value here because the count value needs to be initialized in this block
    {
        zoneDataCount = 0;
        SYMBOL_TABLE_ENTRY_READ(entry, result, zoneDataCount, 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)
        {
            zoneDataID = pointerEntry->ID;
            DupObjInfo* zoneDataDupInfo = pointerEntry->GetDupObject(zoneDataCount, file, line);
            if (zoneDataDupInfo != nullptr && zoneDataDupInfo->Object != nullptr)
            {
                zoneData = (PredictiveSaturationZoneType*)zoneDataDupInfo->Object;
                if (zoneData == nullptr)
                {
                    if (zoneDataDupInfo->File != nullptr)
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "zoneData duplicate found but object is nullptr: %s:%d, RefCount: %d\n",
                            zoneDataDupInfo->File, zoneDataDupInfo->Line, zoneDataDupInfo->RefCount);
                    }
                    else
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "zoneData duplicate found but Object is nullptr: <nullptr file ptr>:%d, RefCount: %d\n",
                            zoneDataDupInfo->Line, zoneDataDupInfo->RefCount);
                    }
                }
            }

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

    return result;
}

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

    PARAMETER_INITIALIZE(enablePredictiveConvergence);
    PARAMETER_INITIALIZE(FPSThreshold);
    PARAMETER_INITIALIZE(disableWhenDRC);
    PARAMETER_INITIALIZE(maxGain);
    PARAMETER_INITIALIZE(predictiveTrigger);

    SYMBOL_TABLE_ENTRY_READ(entry, result, enablePredictiveConvergence, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, FPSThreshold, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, disableWhenDRC, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, maxGain, alignment)

    // Reading Array predictiveTrigger from symbol table
    // Do not check result value here because the count value needs to be initialized in this block
    {
        predictiveTriggerCount = 0;
        SYMBOL_TABLE_ENTRY_READ(entry, result, predictiveTriggerCount, 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)
        {
            predictiveTriggerID = pointerEntry->ID;
            DupObjInfo* predictiveTriggerDupInfo = pointerEntry->GetDupObject(predictiveTriggerCount, file, line);
            if (predictiveTriggerDupInfo != nullptr && predictiveTriggerDupInfo->Object != nullptr)
            {
                predictiveTrigger = (PredictiveGainZoneType*)predictiveTriggerDupInfo->Object;
                if (predictiveTrigger == nullptr)
                {
                    if (predictiveTriggerDupInfo->File != nullptr)
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "predictiveTrigger duplicate found but object is nullptr: %s:%d, RefCount: %d\n",
                            predictiveTriggerDupInfo->File, predictiveTriggerDupInfo->Line, predictiveTriggerDupInfo->RefCount);
                    }
                    else
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "predictiveTrigger duplicate found but Object is nullptr: <nullptr file ptr>:%d, RefCount: %d\n",
                            predictiveTriggerDupInfo->Line, predictiveTriggerDupInfo->RefCount);
                    }
                }
            }

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

    return result;
}

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

    PARAMETER_INITIALIZE(tolMultUnitStepSize);
    PARAMETER_INITIALIZE(frameSkipMethod);
    PARAMETER_INITIALIZE(aggressiveness);
    PARAMETER_INITIALIZE(enableBrightDarkSpeedAdj);
    PARAMETER_INITIALIZE(darkRatioAdjStrength);
    PARAMETER_INITIALIZE(brightRatioAdjStrength);
    PARAMETER_INITIALIZE(thresDarkExpIndexDelta);
    PARAMETER_INITIALIZE(thresBrightExpIndexDelta);
    PARAMETER_INITIALIZE(ADRCConvSpeed);
    PARAMETER_INITIALIZE(predictiveConvergence);
    PARAMETER_INITIALIZE(brightDarkConvAdj);

    SYMBOL_TABLE_ENTRY_READ(entry, result, tolMultUnitStepSize, alignment)
    if (result)
    {
        result = aecglobalelements::ReadEnum_ConvFrameSkipType(entry, frameSkipMethod, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, aggressiveness, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, enableBrightDarkSpeedAdj, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, darkRatioAdjStrength, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, brightRatioAdjStrength, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, thresDarkExpIndexDelta, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, thresBrightExpIndexDelta, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, ADRCConvSpeed, alignment)
    if (result)
    {
        result = predictiveConvergence.Load(entry, alignment);
    }
    if (result)
    {
        result = brightDarkConvAdj.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(enableTorchOffOn);
    PARAMETER_INITIALIZE(enableTorchOnOff);
    PARAMETER_INITIALIZE(minFrameCount);
    PARAMETER_INITIALIZE(conv);

    SYMBOL_TABLE_ENTRY_READ(entry, result, enableTorchOffOn, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, enableTorchOnOff, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, minFrameCount, alignment)
    if (result)
    {
        result = conv.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(enableHoldTime);
    PARAMETER_INITIALIZE(thresAbsExpDelta);
    PARAMETER_INITIALIZE(expDeltaBasedHTAdjFactor);
    PARAMETER_INITIALIZE(tolAdjFactor);
    PARAMETER_INITIALIZE(holdTimeEnterDelay);
    PARAMETER_INITIALIZE(maxHoldTime);
    PARAMETER_INITIALIZE(enableGyroBasedHT);
    PARAMETER_INITIALIZE(thresGyroMagnitude);
    PARAMETER_INITIALIZE(gyroBasedHTAdjFactor);

    SYMBOL_TABLE_ENTRY_READ(entry, result, enableHoldTime, alignment)
    if (result)
    {
        result = thresAbsExpDelta.Load(entry, alignment);
    }
    if (result)
    {
        result = expDeltaBasedHTAdjFactor.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, tolAdjFactor, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, holdTimeEnterDelay, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, maxHoldTime, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, enableGyroBasedHT, alignment)
    if (result)
    {
        result = thresGyroMagnitude.Load(entry, alignment);
    }
    if (result)
    {
        result = gyroBasedHTAdjFactor.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(tolMultUnitStepSize);
    PARAMETER_INITIALIZE(frameSkipMethod);
    PARAMETER_INITIALIZE(stepFactorWhenFrameSkipEnabled);
    PARAMETER_INITIALIZE(convSpeed);
    PARAMETER_INITIALIZE(refFrameRate);
    PARAMETER_INITIALIZE(stepRegular);
    PARAMETER_INITIALIZE(stepDark);
    PARAMETER_INITIALIZE(stepBright);
    PARAMETER_INITIALIZE(thresSlowDownAbsExpIndexDeltaDark);
    PARAMETER_INITIALIZE(thresSlowDownAbsExpIndexDeltaBright);
    PARAMETER_INITIALIZE(maxRawStepAdj);
    PARAMETER_INITIALIZE(tolExpIndexDeltaForceAdj);
    PARAMETER_INITIALIZE(thresNumBrightRgn);
    PARAMETER_INITIALIZE(thresNumDarkRgn);
    PARAMETER_INITIALIZE(holdTimeTuning);
    PARAMETER_INITIALIZE(ADRCConvSpeed);
    PARAMETER_INITIALIZE(predictiveConvergence);

    SYMBOL_TABLE_ENTRY_READ(entry, result, tolMultUnitStepSize, alignment)
    if (result)
    {
        result = aecglobalelements::ReadEnum_ConvFrameSkipType(entry, frameSkipMethod, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, stepFactorWhenFrameSkipEnabled, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, convSpeed, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, refFrameRate, alignment)
    if (result)
    {
        result = stepRegular.Load(entry, alignment);
    }
    if (result)
    {
        result = stepDark.Load(entry, alignment);
    }
    if (result)
    {
        result = stepBright.Load(entry, alignment);
    }
    if (result)
    {
        result = thresSlowDownAbsExpIndexDeltaDark.Load(entry, alignment);
    }
    if (result)
    {
        result = thresSlowDownAbsExpIndexDeltaBright.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, maxRawStepAdj, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, tolExpIndexDeltaForceAdj, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, thresNumBrightRgn, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, thresNumDarkRgn, alignment)
    if (result)
    {
        result = holdTimeTuning.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, ADRCConvSpeed, alignment)
    if (result)
    {
        result = predictiveConvergence.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(algoSelect);
    PARAMETER_INITIALIZE(fastConv);
    PARAMETER_INITIALIZE(slowConv);
    PARAMETER_INITIALIZE(unitStepSize);
    PARAMETER_INITIALIZE(enableConvergeGainFirst);
    PARAMETER_INITIALIZE(settledMultiplier);
    PARAMETER_INITIALIZE(torchConv);

    result = module_version.Load(entry, alignment);
    if (result)
    {
        result = parameter_version.Load(entry, alignment);
    }
    if (result)
    {
        result = aecglobalelements::ReadEnum_AECConvAlgoType(entry, algoSelect, alignment);
    }
    if (result)
    {
        result = fastConv.Load(entry, alignment);
    }
    if (result)
    {
        result = slowConv.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, unitStepSize, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, enableConvergeGainFirst, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, settledMultiplier, alignment)
    if (result)
    {
        result = torchConv.Load(entry, alignment);
    }

    return result;
}

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload BrightDarkConvAdjType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void BrightDarkConvAdjType::Unload(ParameterFileSymbolTable* const __table)
{
    for (UINT32 i = 0; i < darkAdjustmentCount; i++)
    {
        darkAdjustment[i].Unload(__table);
    }
    if (__table != nullptr && __table->ReleaseDupObject(darkAdjustment))
    {
        PARAMETER_DELETE[] darkAdjustment;
    }
    darkAdjustment = nullptr;
    for (UINT32 i = 0; i < brightAdjustmentCount; i++)
    {
        brightAdjustment[i].Unload(__table);
    }
    if (__table != nullptr && __table->ReleaseDupObject(brightAdjustment))
    {
        PARAMETER_DELETE[] brightAdjustment;
    }
    brightAdjustment = nullptr;
}

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload FastConvType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FastConvType::Unload(ParameterFileSymbolTable* const __table)
{
    predictiveConvergence.Unload(__table);
    brightDarkConvAdj.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload TorchConvergenceType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void TorchConvergenceType::Unload(ParameterFileSymbolTable* const __table)
{
    conv.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload SlowConvType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void SlowConvType::Unload(ParameterFileSymbolTable* const __table)
{
    predictiveConvergence.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload AECCoreConvergenceType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECCoreConvergenceType::Unload(ParameterFileSymbolTable* const __table)
{
    parameter_version.Unload(__table);
    fastConv.Unload(__table);
    slowConv.Unload(__table);
    torchConv.Unload(__table);
}

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

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

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

    return (ParameterModule*)cls;
}

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

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

AECCONVERGENCE_NAMESPACE_END
