////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// 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 V7.4.1 (8cca6579792b9fcef3bc725ff070c5ec453c7c85)
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @file  aecxconvergence.cpp
/// @brief Auto-generated Chromatix parameter file
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#include "aecxconvergence.h"
#include "parametersetmanager.h"

AECXCONVERGENCE_NAMESPACE_BEGIN

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// SetValue/GetValue Functions
/// Gets or sets the requested value
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool SmartADRCType::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;

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

    if (PARAMETER_STRCMP(__name, "enable") == 0)
    {
        ParameterUtils::DoubleToString((double)enable, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "gyroThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)gyroThreshold, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "gyroExpAdjstableThr") == 0)
    {
        ParameterUtils::DoubleToString((double)gyroExpAdjstableThr, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "IncDownThr") == 0)
    {
        ParameterUtils::DoubleToString((double)IncDownThr, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "IncUpThr") == 0)
    {
        ParameterUtils::DoubleToString((double)IncUpThr, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "DecDownThr") == 0)
    {
        ParameterUtils::DoubleToString((double)DecDownThr, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "DecUpThr") == 0)
    {
        ParameterUtils::DoubleToString((double)DecUpThr, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "BrightRatioHighThr") == 0)
    {
        ParameterUtils::DoubleToString((double)BrightRatioHighThr, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "BrightRatioLowThr") == 0)
    {
        ParameterUtils::DoubleToString((double)BrightRatioLowThr, __value, __size);
        __result = true;
    }

    return __result;
}

bool SmartADRCType::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;

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

    if (PARAMETER_STRCMP(__name, "enable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enable = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "gyroThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            gyroThreshold = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "gyroExpAdjstableThr") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            gyroExpAdjstableThr = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "IncDownThr") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            IncDownThr = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "IncUpThr") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            IncUpThr = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "DecDownThr") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            DecDownThr = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "DecUpThr") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            DecUpThr = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "BrightRatioHighThr") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            BrightRatioHighThr = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "BrightRatioLowThr") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            BrightRatioLowThr = (float)dblValue; 
        }
    }

    return __result;
}

bool SmartADRCType::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;

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

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

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

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

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

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

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

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

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

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

    return __result;
}

bool SmoothNodeType::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;

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

    if (PARAMETER_STRCMP(__name, "minNodeDRCGain") == 0)
    {
        ParameterUtils::DoubleToString((double)minNodeDRCGain, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "maxNodeDRCGain") == 0)
    {
        ParameterUtils::DoubleToString((double)maxNodeDRCGain, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "nodeSize") == 0)
    {
        ParameterUtils::DoubleToString((double)nodeSize, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "triggerPointUp") == 0)
    {
        ParameterUtils::DoubleToString((double)triggerPointUp, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "triggerPointDown") == 0)
    {
        ParameterUtils::DoubleToString((double)triggerPointDown, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "multiplierIncrement") == 0)
    {
        ParameterUtils::DoubleToString((double)multiplierIncrement, __value, __size);
        __result = true;
    }

    return __result;
}

bool SmoothNodeType::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;

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

    if (PARAMETER_STRCMP(__name, "minNodeDRCGain") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minNodeDRCGain = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "maxNodeDRCGain") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            maxNodeDRCGain = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "nodeSize") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            nodeSize = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "triggerPointUp") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            triggerPointUp = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "triggerPointDown") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            triggerPointDown = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "multiplierIncrement") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            multiplierIncrement = (float)dblValue; 
        }
    }

    return __result;
}

bool SmoothNodeType::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;

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

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

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

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

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

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

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

    return __result;
}

bool AECXConvergenceType::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, "moduleID") == 0)
    {
        ParameterUtils::DoubleToString((double)(UINT32)moduleID, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "unitStepSize") == 0)
    {
        ParameterUtils::DoubleToString((double)unitStepSize, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "drcStretchAgg") == 0)
    {
        ParameterUtils::DoubleToString((double)(UINT32)drcStretchAgg, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "smoothADRC") == 0)
    {
        __result = smoothADRC.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "smoothDarkBoost") == 0)
    {
        __result = smoothDarkBoost.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "smartADRC") == 0)
    {
        __result = smartADRC.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool AECXConvergenceType::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, "moduleID") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            moduleID = (aecxglobalelements::AECXModuleIDType)(UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "unitStepSize") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            unitStepSize = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "drcStretchAgg") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            drcStretchAgg = (AECConvDRCStretchAggType)(UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "smoothADRC") == 0)
    {
        __result = smoothADRC.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "smoothDarkBoost") == 0)
    {
        __result = smoothDarkBoost.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "smartADRC") == 0)
    {
        __result = smartADRC.SetValue(&__path[__pos], __value);
    }

    return __result;
}

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

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

    // 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));
    }

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

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

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

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

    return __result;
}

bool AECXConvergenceType::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;

    (void)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 AECXConvergenceType::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;

    (void)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 AECXConvergenceType::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;

    (void)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 AECXConvergenceType::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;

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

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

    return __result;
}

bool AECXConvergenceType::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;

    (void)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 AECXConvergenceType::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;

    (void)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
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AECXConvergenceTypeClass::AECXConvergenceTypeClass(
    const CHAR* name)
    : ParameterModule(name, MAJOR, MINOR, PATCH, nullptr)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(moduleID);
    PARAMETER_INITIALIZE(unitStepSize);
    PARAMETER_INITIALIZE(drcStretchAgg);
    PARAMETER_INITIALIZE(smoothADRC);
    PARAMETER_INITIALIZE(smoothDarkBoost);
    PARAMETER_INITIALIZE(smartADRC);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AECXConvergenceTypeClass::AECXConvergenceTypeClass(
    const CHAR*       name,
    ModuleData* const moduleData)
    : ParameterModule(name, MAJOR, MINOR, PATCH, moduleData)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(moduleID);
    PARAMETER_INITIALIZE(unitStepSize);
    PARAMETER_INITIALIZE(drcStretchAgg);
    PARAMETER_INITIALIZE(smoothADRC);
    PARAMETER_INITIALIZE(smoothDarkBoost);
    PARAMETER_INITIALIZE(smartADRC);
}

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


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load SmartADRCType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void SmartADRCType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(enable);
    PARAMETER_INITIALIZE(gyroThreshold);
    PARAMETER_INITIALIZE(gyroExpAdjstableThr);
    PARAMETER_INITIALIZE(IncDownThr);
    PARAMETER_INITIALIZE(IncUpThr);
    PARAMETER_INITIALIZE(DecDownThr);
    PARAMETER_INITIALIZE(DecUpThr);
    PARAMETER_INITIALIZE(BrightRatioHighThr);
    PARAMETER_INITIALIZE(BrightRatioLowThr);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0xb3c00adf8e304e57;
        entry->ReadSimpleTypeFixedArray(&enable, 1, localParams);
        localParams.NameHash = 0xed6d854be5a8e616;
        entry->ReadSimpleTypeFixedArray(&gyroThreshold, 1, localParams);
        localParams.NameHash = 0xd12772df04e39688;
        entry->ReadSimpleTypeFixedArray(&gyroExpAdjstableThr, 1, localParams);
        localParams.NameHash = 0x99fdfaf1ab239f51;
        entry->ReadSimpleTypeFixedArray(&IncDownThr, 1, localParams);
        localParams.NameHash = 0xee9f8540b321a7cf;
        entry->ReadSimpleTypeFixedArray(&IncUpThr, 1, localParams);
        localParams.NameHash = 0xe6f1b5833a2bd767;
        entry->ReadSimpleTypeFixedArray(&DecDownThr, 1, localParams);
        localParams.NameHash = 0xa81312a1815b60ed;
        entry->ReadSimpleTypeFixedArray(&DecUpThr, 1, localParams);
        localParams.NameHash = 0xb3ef40db693e447d;
        entry->ReadSimpleTypeFixedArray(&BrightRatioHighThr, 1, localParams);
        localParams.NameHash = 0xcce747113b41a158;
        entry->ReadSimpleTypeFixedArray(&BrightRatioLowThr, 1, localParams);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void SmartADRCType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        SmartADRCType* arrayPtr = (SmartADRCType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* SmartADRCType::AllocArray(
    UINT32 __count)
{
    SmartADRCType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW SmartADRCType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load SmoothNodeType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void SmoothNodeType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(minNodeDRCGain);
    PARAMETER_INITIALIZE(maxNodeDRCGain);
    PARAMETER_INITIALIZE(nodeSize);
    PARAMETER_INITIALIZE(triggerPointUp);
    PARAMETER_INITIALIZE(triggerPointDown);
    PARAMETER_INITIALIZE(multiplierIncrement);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0xc1d58cbeb4fccf15;
        entry->ReadSimpleTypeFixedArray(&minNodeDRCGain, 1, localParams);
        localParams.NameHash = 0xc143e78034b7d1c0;
        entry->ReadSimpleTypeFixedArray(&maxNodeDRCGain, 1, localParams);
        localParams.NameHash = 0xf2a3c6fbe907f14c;
        entry->ReadSimpleTypeFixedArray(&nodeSize, 1, localParams);
        localParams.NameHash = 0xad4628f4ba8830cb;
        entry->ReadSimpleTypeFixedArray(&triggerPointUp, 1, localParams);
        localParams.NameHash = 0x9ec750f2b73411f7;
        entry->ReadSimpleTypeFixedArray(&triggerPointDown, 1, localParams);
        localParams.NameHash = 0xa91e5d4ba071efe4;
        entry->ReadSimpleTypeFixedArray(&multiplierIncrement, 1, localParams);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void SmoothNodeType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        SmoothNodeType* arrayPtr = (SmoothNodeType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* SmoothNodeType::AllocArray(
    UINT32 __count)
{
    SmoothNodeType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW SmoothNodeType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load DRCSmoothType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void DRCSmoothType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(enableSmoothDRC);
    PARAMETER_INITIALIZE(nodesCount);
    PARAMETER_INITIALIZE(nodes);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0xf2628f43c5eb78ea;
        entry->ReadSimpleTypeFixedArray(&enableSmoothDRC, 1, localParams);
        localParams.NameHash = 0xca0c9e865a4eb9ca;
        entry->ReadStructureArray(nodes, nodesCount, nodesID, 1, localParams, __COUNTER__);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void DRCSmoothType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        DRCSmoothType* arrayPtr = (DRCSmoothType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* DRCSmoothType::AllocArray(
    UINT32 __count)
{
    DRCSmoothType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW DRCSmoothType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load AECXConvergenceType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXConvergenceType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(moduleID);
    PARAMETER_INITIALIZE(unitStepSize);
    PARAMETER_INITIALIZE(drcStretchAgg);
    PARAMETER_INITIALIZE(smoothADRC);
    PARAMETER_INITIALIZE(smoothDarkBoost);
    PARAMETER_INITIALIZE(smartADRC);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.UseParent       = false;
        localParams.UseParentOffset = true;
        localParams.NameHash        = 0xe11cd9f365a2599f;
        module_version.Load(localParams);
        localParams.NameHash        = 0xca3106e199a12935;
        parameter_version.Load(localParams);
        localParams.NameHash = 0xb5bb6c7a408ed007;
        entry->ReadEnumFixedArray(&moduleID, 1, localParams);
        localParams.NameHash = 0xf9eac381280b49d3;
        entry->ReadSimpleTypeFixedArray(&unitStepSize, 1, localParams);
        localParams.NameHash = 0xe29a70ff7aa48dfc;
        entry->ReadEnumFixedArray(&drcStretchAgg, 1, localParams);
        localParams.NameHash        = 0xb970638615537b31;
        smoothADRC.Load(localParams);
        localParams.NameHash        = 0xb2cbdfe794f257e9;
        smoothDarkBoost.Load(localParams);
        localParams.NameHash        = 0x9e30b415acefbae0;
        smartADRC.Load(localParams);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void AECXConvergenceType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        AECXConvergenceType* arrayPtr = (AECXConvergenceType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* AECXConvergenceType::AllocArray(
    UINT32 __count)
{
    AECXConvergenceType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW AECXConvergenceType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load module_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXConvergenceType::module_versionStruct::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(major_revision);
    PARAMETER_INITIALIZE(minor_revision);
    PARAMETER_INITIALIZE(incr_revision);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0xcd66249477636693;
        entry->ReadSimpleTypeFixedArray(&major_revision, 1, localParams);
        localParams.NameHash = 0xc5497493137a9c25;
        entry->ReadSimpleTypeFixedArray(&minor_revision, 1, localParams);
        localParams.NameHash = 0xb27b8a668efb2a56;
        entry->ReadSimpleTypeFixedArray(&incr_revision, 1, localParams);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void AECXConvergenceType::module_versionStruct::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        module_versionStruct* arrayPtr = (module_versionStruct*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* AECXConvergenceType::module_versionStruct::AllocArray(
    UINT32 __count)
{
    module_versionStruct* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW module_versionStruct[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load parameter_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXConvergenceType::parameter_versionStruct::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(revision);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0xd594eed07a5650c5;
        entry->ReadStringFixedArray(&revision, 1, localParams, __COUNTER__);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void AECXConvergenceType::parameter_versionStruct::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        parameter_versionStruct* arrayPtr = (parameter_versionStruct*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* AECXConvergenceType::parameter_versionStruct::AllocArray(
    UINT32 __count)
{
    parameter_versionStruct* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW parameter_versionStruct[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload DRCSmoothType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void DRCSmoothType::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, nodes);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload AECXConvergenceType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXConvergenceType::Unload(ParameterFileSymbolTable* const __table)
{
    parameter_version.Unload(__table);
    smoothADRC.Unload(__table);
    smoothDarkBoost.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload parameter_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXConvergenceType::parameter_versionStruct::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, revision);
}

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// GetModuleName: Returns ParameterModule::Name variable
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
const CHAR* AECXConvergenceType::GetModuleName()
{
    return ((AECXConvergenceTypeClass*)this)->Name;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// GetModuleName: Returns ParameterModule::NameHash variable
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
UINT64 AECXConvergenceType::GetModuleNameHash()
{
    return ((AECXConvergenceTypeClass*)this)->NameHash;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Create module, and return a new object
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
ParameterModule* AECXConvergenceTypeClass::Create(
    ModuleData* const    moduleData,
    DefaultModule* const defModule) const
{
    AECXConvergenceTypeClass* cls = nullptr;

    if (IsModuleMatch(moduleData) && 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 = (AECXConvergenceTypeClass*)module;
        }
        else
        {
            cls = PARAMETER_NEW AECXConvergenceTypeClass(Name, moduleData);
            cls->SymbolTableID = id;
            defModule->AddModule((ParameterModule*)cls);
        }
    }
    else if (Version.Value != moduleData->Version.Value)
    {
        PARAMETER_LOG_ERROR(moduleData->SetManager, "Unable to create AECXConvergenceTypeClass, binary version (%lld) does not match source version (%lld)\n",
            moduleData->Version.Value, Version.Value);
    }
    else
    {
        PARAMETER_LOG_ERROR(moduleData->SetManager, "Unable to create AECXConvergenceTypeClass, binary name hash (0x%016llx) does not match source name hash (0x%016llx)\n",
            moduleData->NameHash, NameHash);
    }

    return (ParameterModule*)cls;
}

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

#ifdef PARAMETER_USE_MUTEX
    ParameterMutexLocker lock(Mutex); // Unique LOCK
#endif

    if (!Loaded)
    {
        AECXConvergenceTypeClass* 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 & 0x00ffffffU);

        if (!result)
        {
            PARAMETER_LOG_ERROR(entry->Table->SetManager, "AECXConvergenceTypeClass::LoadModule Failed to find module ID (%d) in Symbol Table\n", SymbolTableID);
        }


        ParameterDefinitionElement* _element = nullptr;
        if (table->ModuleDefinitions != nullptr && !table->ModuleDefinitions->empty())
        {
            _element = table->BuildModuleElement(NameHash);
        }

        ParameterLoadParameters parentParams(entry, NameHash, true, true, _element, entry->Position, 0, ParameterFileSymbolTableEntry::LOAD_LIMIT_MAX);
        cls->Load(parentParams);
        PARAMETER_DELETE _element;
        Modified++;
        Loaded = true;
    }

    if (!result)
    {
        /// Module failed to fully load, unload it
        UnloadModule();
    }

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload module data
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXConvergenceTypeClass::UnloadModule()
{
#ifdef PARAMETER_USE_MUTEX
    ParameterMutexLocker lock(Mutex); // Unique LOCK
#endif

    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 AECXConvergenceTypeClass::Release()
{
    ParameterModule::Release();
}

AECXCONVERGENCE_NAMESPACE_END
