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

#include "aecxarbitration.h"
#include "parametersetmanager.h"

AECXARBITRATION_NAMESPACE_BEGIN

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

    return __result;
}

bool ArbitrationEndType::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, "endSelection") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            endSelection = (EndKneePointType)(UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "tableID") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            tableID = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "quantityToModifyFirst") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            quantityToModifyFirst = (aecxglobalelements::ExposureIncPrioType)(UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "manualGain") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            manualGain = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "manualTime") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            manualTime = (UINT64)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

    return __result;
}

bool ReferenceSourceType::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, "bUseStaticTuning") == 0)
    {
        ParameterUtils::DoubleToString((double)bUseStaticTuning, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "staticTuningGain") == 0)
    {
        ParameterUtils::DoubleToString((double)staticTuningGain, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "staticTuningTime") == 0)
    {
        ParameterUtils::DoubleToString((double)staticTuningTime, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "frameSelection") == 0)
    {
        __result = frameSelection.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "frameExposureTypeSelection") == 0)
    {
        ParameterUtils::DoubleToString((double)(UINT32)frameExposureTypeSelection, __value, __size, 0);
        __result = true;
    }

    return __result;
}

bool ReferenceSourceType::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, "bUseStaticTuning") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            bUseStaticTuning = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "staticTuningGain") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            staticTuningGain = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "staticTuningTime") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            staticTuningTime = (UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "frameSelection") == 0)
    {
        __result = frameSelection.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "frameExposureTypeSelection") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            frameExposureTypeSelection = (aecxglobalelements::AECXExposureSelection)(UINT32)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

    return __result;
}

bool ArbitrationReferenceType::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, "dataID") == 0)
    {
        ParameterUtils::DoubleToString((double)dataID, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "description") == 0)
    {
        PARAMETER_STRCPY(__value, __size, description);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "bEnableOnlyForBracketedSnapshot") == 0)
    {
        ParameterUtils::DoubleToString((double)bEnableOnlyForBracketedSnapshot, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "bracketedEVType") == 0)
    {
        ParameterUtils::DoubleToString((double)(UINT32)bracketedEVType, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "referenceSource") == 0)
    {
        __result = referenceSource.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "endSettings") == 0)
    {
        __result = endSettings.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool ArbitrationReferenceType::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, "dataID") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            dataID = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "description") == 0)
    {
        // Cannot modify strings, risk of memory leaks or corruption
    }
    else if (PARAMETER_STRCMP(__name, "bEnableOnlyForBracketedSnapshot") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            bEnableOnlyForBracketedSnapshot = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "bracketedEVType") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            bracketedEVType = (aecxglobalelements::EVOffsetType)(UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "referenceSource") == 0)
    {
        __result = referenceSource.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "endSettings") == 0)
    {
        __result = endSettings.SetValue(&__path[__pos], __value);
    }

    return __result;
}

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

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

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

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

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

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

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

    return __result;
}

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

    return __result;
}

bool ISOSettingType::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, "previewISO100Gain") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            previewISO100Gain = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "enableISOQuantization") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enableISOQuantization = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "quantizationSteps") == 0)
    {
        if (__index < quantizationStepsCount)
        {
            __result = quantizationSteps[__index].SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

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

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

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

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

    return __result;
}

bool EVIncreaseCapType::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, "enableEVGainCapping") == 0)
    {
        ParameterUtils::DoubleToString((double)enableEVGainCapping, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "maxEVCappingGain") == 0)
    {
        ParameterUtils::DoubleToString((double)maxEVCappingGain, __value, __size);
        __result = true;
    }

    return __result;
}

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

    return __result;
}

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

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

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

    return __result;
}

bool AECXArbitrationType::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, "EVArbitration") == 0)
    {
        __result = EVArbitration.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "ISO") == 0)
    {
        __result = ISO.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "referenceArray") == 0)
    {
        if (__index < referenceArrayCount)
        {
            __result = referenceArray[__index].GetValue(&__path[__pos], __value, __size);
        }
    }
    else if (PARAMETER_STRCMP(__name, "enableMFHDRLowLightSmartFPS") == 0)
    {
        ParameterUtils::DoubleToString((double)enableMFHDRLowLightSmartFPS, __value, __size, 0);
        __result = true;
    }

    return __result;
}

bool AECXArbitrationType::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, "EVArbitration") == 0)
    {
        __result = EVArbitration.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "ISO") == 0)
    {
        __result = ISO.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "referenceArray") == 0)
    {
        if (__index < referenceArrayCount)
        {
            __result = referenceArray[__index].SetValue(&__path[__pos], __value);
        }
    }
    else if (PARAMETER_STRCMP(__name, "enableMFHDRLowLightSmartFPS") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enableMFHDRLowLightSmartFPS = (BOOL)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

    return __result;
}

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

bool AntibandingType::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, "ATB50Index") == 0)
    {
        ParameterUtils::DoubleToString((double)ATB50Index, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "ATB60Index") == 0)
    {
        ParameterUtils::DoubleToString((double)ATB60Index, __value, __size, 0);
        __result = true;
    }

    return __result;
}

bool AntibandingType::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, "ATB50Index") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            ATB50Index = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "ATB60Index") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            ATB60Index = (INT32)dblValue; 
        }
    }

    return __result;
}

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

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

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

    return __result;
}

bool AdjustDRCType::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, "safeTimeMaxRatio") == 0)
    {
        ParameterUtils::DoubleToString((double)safeTimeMaxRatio, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "safeGainMaxRatio") == 0)
    {
        ParameterUtils::DoubleToString((double)safeGainMaxRatio, __value, __size);
        __result = true;
    }

    return __result;
}

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

    return __result;
}

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

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

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

    return __result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Default Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AECXArbitrationTypeClass::AECXArbitrationTypeClass(
    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(EVArbitration);
    PARAMETER_INITIALIZE(ISO);
    PARAMETER_INITIALIZE(referenceArrayCount);
    PARAMETER_INITIALIZE(referenceArray);
    PARAMETER_INITIALIZE(enableMFHDRLowLightSmartFPS);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AECXArbitrationTypeClass::AECXArbitrationTypeClass(
    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(EVArbitration);
    PARAMETER_INITIALIZE(ISO);
    PARAMETER_INITIALIZE(referenceArray);
    PARAMETER_INITIALIZE(enableMFHDRLowLightSmartFPS);
}

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


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load ArbitrationEndType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void ArbitrationEndType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(endSelection);
    PARAMETER_INITIALIZE(tableID);
    PARAMETER_INITIALIZE(quantityToModifyFirst);
    PARAMETER_INITIALIZE(manualGain);
    PARAMETER_INITIALIZE(manualTime);

    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 = 0xff1126c9aa72c851;
        entry->ReadEnumFixedArray(&endSelection, 1, localParams);
        localParams.NameHash = 0x8b3af4fc184062ae;
        entry->ReadSimpleTypeFixedArray(&tableID, 1, localParams);
        localParams.NameHash = 0xcd2aa3facff8e9c6;
        entry->ReadEnumFixedArray(&quantityToModifyFirst, 1, localParams);
        localParams.NameHash = 0xaba3864465f87598;
        entry->ReadSimpleTypeFixedArray(&manualGain, 1, localParams);
        localParams.NameHash = 0xffabacfcc79c34b1;
        entry->ReadSimpleTypeFixedArray(&manualTime, 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 ArbitrationEndType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        ArbitrationEndType* arrayPtr = (ArbitrationEndType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load ReferenceSourceType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void ReferenceSourceType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(bUseStaticTuning);
    PARAMETER_INITIALIZE(staticTuningGain);
    PARAMETER_INITIALIZE(staticTuningTime);
    PARAMETER_INITIALIZE(frameSelection);
    PARAMETER_INITIALIZE(frameExposureTypeSelection);

    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 = 0xd1152ace564ab423;
        entry->ReadSimpleTypeFixedArray(&bUseStaticTuning, 1, localParams);
        localParams.NameHash = 0x9667e06d7af8b0db;
        entry->ReadSimpleTypeFixedArray(&staticTuningGain, 1, localParams);
        localParams.NameHash = 0xc26fcad5d89cf1f2;
        entry->ReadSimpleTypeFixedArray(&staticTuningTime, 1, localParams);
        localParams.UseParent       = false;
        localParams.UseParentOffset = true;
        localParams.NameHash        = 0xe5a275d06e077992;
        frameSelection.Load(localParams);
        localParams.NameHash = 0xd71374095c4b0efd;
        entry->ReadEnumFixedArray(&frameExposureTypeSelection, 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 ReferenceSourceType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        ReferenceSourceType* arrayPtr = (ReferenceSourceType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load ArbitrationReferenceType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void ArbitrationReferenceType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(dataID);
    PARAMETER_INITIALIZE(description);
    PARAMETER_INITIALIZE(bEnableOnlyForBracketedSnapshot);
    PARAMETER_INITIALIZE(bracketedEVType);
    PARAMETER_INITIALIZE(referenceSource);
    PARAMETER_INITIALIZE(endSettings);

    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 = 0xeda696b9df26939b;
        entry->ReadSimpleTypeFixedArray(&dataID, 1, localParams);
        localParams.NameHash = 0x938412c624b5c1a1;
        entry->ReadStringFixedArray(&description, 1, localParams, __COUNTER__);
        localParams.NameHash = 0xcaa3119ce450aade;
        entry->ReadSimpleTypeFixedArray(&bEnableOnlyForBracketedSnapshot, 1, localParams);
        localParams.NameHash = 0xcd1c4645a36a6252;
        entry->ReadEnumFixedArray(&bracketedEVType, 1, localParams);
        localParams.UseParent       = false;
        localParams.UseParentOffset = true;
        localParams.NameHash        = 0xbfd4d25b9266be85;
        referenceSource.Load(localParams);
        localParams.NameHash        = 0xa50e09c58e3b1487;
        endSettings.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 ArbitrationReferenceType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        ArbitrationReferenceType* arrayPtr = (ArbitrationReferenceType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load ISOSettingType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void ISOSettingType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(previewISO100Gain);
    PARAMETER_INITIALIZE(enableISOQuantization);
    PARAMETER_INITIALIZE(quantizationStepsCount);
    PARAMETER_INITIALIZE(quantizationSteps);

    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 = 0xca69f153183d04c5;
        entry->ReadSimpleTypeFixedArray(&previewISO100Gain, 1, localParams);
        localParams.NameHash = 0xe8f4302b5428541b;
        entry->ReadSimpleTypeFixedArray(&enableISOQuantization, 1, localParams);
        localParams.NameHash = 0xec5eace22da27a88;
        entry->ReadStructureArray(quantizationSteps, quantizationStepsCount, quantizationStepsID, 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 ISOSettingType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        ISOSettingType* arrayPtr = (ISOSettingType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load EVIncreaseCapType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void EVIncreaseCapType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(enableEVGainCapping);
    PARAMETER_INITIALIZE(maxEVCappingGain);

    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 = 0xb89e5e2509419208;
        entry->ReadSimpleTypeFixedArray(&enableEVGainCapping, 1, localParams);
        localParams.NameHash = 0x9f30ffe725f1a614;
        entry->ReadSimpleTypeFixedArray(&maxEVCappingGain, 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 EVIncreaseCapType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        EVIncreaseCapType* arrayPtr = (EVIncreaseCapType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load EVIncreaseType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void EVIncreaseType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(enableEVTableIncrease);
    PARAMETER_INITIALIZE(increaseCap);

    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 = 0xb9a557bfbe5ff3ae;
        entry->ReadSimpleTypeFixedArray(&enableEVTableIncrease, 1, localParams);
        localParams.UseParent       = false;
        localParams.UseParentOffset = true;
        localParams.NameHash        = 0xf96ec014927280ee;
        increaseCap.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 EVIncreaseType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        EVIncreaseType* arrayPtr = (EVIncreaseType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load EVArbitrationType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void EVArbitrationType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(EVTableIncrease);
    PARAMETER_INITIALIZE(enableEVTableDecrease);

    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        = 0xfe31369af000a486;
        EVTableIncrease.Load(localParams);
        localParams.NameHash = 0xff29c05e8c25348c;
        entry->ReadSimpleTypeFixedArray(&enableEVTableDecrease, 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 EVArbitrationType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        EVArbitrationType* arrayPtr = (EVArbitrationType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load AECXArbitrationType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXArbitrationType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(moduleID);
    PARAMETER_INITIALIZE(EVArbitration);
    PARAMETER_INITIALIZE(ISO);
    PARAMETER_INITIALIZE(referenceArrayCount);
    PARAMETER_INITIALIZE(referenceArray);
    PARAMETER_INITIALIZE(enableMFHDRLowLightSmartFPS);

    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        = 0xb49ddd9bfebdc959;
        EVArbitration.Load(localParams);
        localParams.NameHash        = 0xa59ec68cb8d0f88e;
        ISO.Load(localParams);
        localParams.NameHash = 0xf9e5798aaab07efc;
        entry->ReadStructureArray(referenceArray, referenceArrayCount, referenceArrayID, 1, localParams, __COUNTER__);
        localParams.NameHash = 0x839e2c8cdafb0d1c;
        entry->ReadSimpleTypeFixedArray(&enableMFHDRLowLightSmartFPS, 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 AECXArbitrationType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        AECXArbitrationType* arrayPtr = (AECXArbitrationType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load module_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXArbitrationType::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 AECXArbitrationType::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* AECXArbitrationType::module_versionStruct::AllocArray(
    UINT32 __count)
{
    module_versionStruct* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW module_versionStruct[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load parameter_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXArbitrationType::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 AECXArbitrationType::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* AECXArbitrationType::parameter_versionStruct::AllocArray(
    UINT32 __count)
{
    parameter_versionStruct* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW parameter_versionStruct[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load AntibandingType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AntibandingType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(ATB50Index);
    PARAMETER_INITIALIZE(ATB60Index);

    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 = 0x8fea15532ed1143d;
        entry->ReadSimpleTypeFixedArray(&ATB50Index, 1, localParams);
        localParams.NameHash = 0xf6bf6c72d594c3c8;
        entry->ReadSimpleTypeFixedArray(&ATB60Index, 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 AntibandingType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        AntibandingType* arrayPtr = (AntibandingType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load AdjustDRCType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AdjustDRCType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(safeTimeMaxRatio);
    PARAMETER_INITIALIZE(safeGainMaxRatio);

    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 = 0x9f0eedc687b675f2;
        entry->ReadSimpleTypeFixedArray(&safeTimeMaxRatio, 1, localParams);
        localParams.NameHash = 0xe6e89f02096c7871;
        entry->ReadSimpleTypeFixedArray(&safeGainMaxRatio, 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 AdjustDRCType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        AdjustDRCType* arrayPtr = (AdjustDRCType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload ArbitrationReferenceType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void ArbitrationReferenceType::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, description);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload ISOSettingType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void ISOSettingType::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, quantizationSteps);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload AECXArbitrationType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXArbitrationType::Unload(ParameterFileSymbolTable* const __table)
{
    parameter_version.Unload(__table);
    ISO.Unload(__table);
    for (UINT32 i = 0; referenceArray != nullptr && i < referenceArrayCount; i++)
    {
        referenceArray[i].Unload(__table);
    }
    ParameterFileSymbolTable::ReleaseObject(__table, referenceArray);
}

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

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

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Create module, and return a new object
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
ParameterModule* AECXArbitrationTypeClass::Create(
    ModuleData* const    moduleData,
    DefaultModule* const defModule) const
{
    AECXArbitrationTypeClass* 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 = (AECXArbitrationTypeClass*)module;
        }
        else
        {
            cls = PARAMETER_NEW AECXArbitrationTypeClass(Name, moduleData);
            cls->SymbolTableID = id;
            defModule->AddModule((ParameterModule*)cls);
        }
    }
    else if (Version.Value != moduleData->Version.Value)
    {
        PARAMETER_LOG_ERROR(moduleData->SetManager, "Unable to create AECXArbitrationTypeClass, binary version (%lld) does not match source version (%lld)\n",
            moduleData->Version.Value, Version.Value);
    }
    else
    {
        PARAMETER_LOG_ERROR(moduleData->SetManager, "Unable to create AECXArbitrationTypeClass, 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 AECXArbitrationTypeClass::LoadModule(
    ParameterFileSymbolTable* const table)
{
    bool result = true;

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

    if (!Loaded)
    {
        AECXArbitrationTypeClass* 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, "AECXArbitrationTypeClass::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 AECXArbitrationTypeClass::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 AECXArbitrationTypeClass::Release()
{
    ParameterModule::Release();
}

AECXARBITRATION_NAMESPACE_END
