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

#include "afmonitorelements.h"
#include "parametersetmanager.h"

AFMONITORELEMENTS_NAMESPACE_BEGIN

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

    return __result;
}

bool chromatixIirFltrCfgType::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 = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "numOfSamples") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            numOfSamples = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "coeffNumerator") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            coeffNumerator = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "coeffDenominator") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            coeffDenominator = (float)dblValue; 
        }
    }

    return __result;
}

bool chromatixIirFltrCfgType::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::Int32, (double)enable, 0));
    }
    else if (PARAMETER_STRCMP(__name, "enable") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Int32, (double)enable, 0));
    }

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

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

bool chromatixMvavgFltrCfgType::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::Int32, (double)enable, 0));
    }
    else if (PARAMETER_STRCMP(__name, "enable") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Int32, (double)enable, 0));
    }

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

bool chromatixMedianFltrCfgType::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::Int32, (double)enable, 0));
    }
    else if (PARAMETER_STRCMP(__name, "enable") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Int32, (double)enable, 0));
    }

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

    return __result;
}

bool chromatixSensProfileType::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, "triggerThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)triggerThreshold, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "consecutiveCountThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)consecutiveCountThreshold, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "frameToArmed") == 0)
    {
        ParameterUtils::DoubleToString((double)frameToArmed, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "highCountThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)highCountThreshold, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "lowCountThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)lowCountThreshold, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "medianFltrCfg") == 0)
    {
        __result = medianFltrCfg.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "mvavgFltrCfg") == 0)
    {
        __result = mvavgFltrCfg.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "IIRFltrCfg") == 0)
    {
        __result = IIRFltrCfg.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool chromatixSensProfileType::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, "triggerThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            triggerThreshold = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "consecutiveCountThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            consecutiveCountThreshold = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "frameToArmed") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            frameToArmed = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "highCountThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            highCountThreshold = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "lowCountThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            lowCountThreshold = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "medianFltrCfg") == 0)
    {
        __result = medianFltrCfg.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "mvavgFltrCfg") == 0)
    {
        __result = mvavgFltrCfg.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "IIRFltrCfg") == 0)
    {
        __result = IIRFltrCfg.SetValue(&__path[__pos], __value);
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

bool chromatixAbsoluteModeCfgType::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::Int32, (double)enable, 0));
    }
    else if (PARAMETER_STRCMP(__name, "enable") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Int32, (double)enable, 0));
    }

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

    return __result;
}

bool chromatixValueMonitorType::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, "VMSetType") == 0)
    {
        ParameterUtils::DoubleToString((double)(UINT32)VMSetType, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "detectionType") == 0)
    {
        ParameterUtils::DoubleToString((double)(UINT32)detectionType, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "VMInitState") == 0)
    {
        ParameterUtils::DoubleToString((double)(UINT32)VMInitState, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "absoluteModeCfg") == 0)
    {
        __result = absoluteModeCfg.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "sensProfileLow") == 0)
    {
        __result = sensProfileLow.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "sensProfileMed") == 0)
    {
        __result = sensProfileMed.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "sensProfileHigh") == 0)
    {
        __result = sensProfileHigh.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool chromatixValueMonitorType::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, "VMSetType") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            VMSetType = (chromatixVMSetTypeEnum)(UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "detectionType") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            detectionType = (chromatixDetectorTypeEnum)(UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "VMInitState") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            VMInitState = (chromatixVMStateEnum)(UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "absoluteModeCfg") == 0)
    {
        __result = absoluteModeCfg.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "sensProfileLow") == 0)
    {
        __result = sensProfileLow.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "sensProfileMed") == 0)
    {
        __result = sensProfileMed.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "sensProfileHigh") == 0)
    {
        __result = sensProfileHigh.SetValue(&__path[__pos], __value);
    }

    return __result;
}

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

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

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

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

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

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

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

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

    return __result;
}

bool chromatixValueMonitorBankType::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, "valueMonitor") == 0)
    {
        if (__index < valueMonitorCount)
        {
            __result = valueMonitor[__index].GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool chromatixValueMonitorBankType::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, "valueMonitor") == 0)
    {
        if (__index < valueMonitorCount)
        {
            __result = valueMonitor[__index].SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

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

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

    return __result;
}

bool sensitivityModifierArr::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, "roiBasedSensitivityModifier") == 0)
    {
        if (__index < roiBasedSensitivityModifierCount)
        {
            __result = roiBasedSensitivityModifier[__index].GetValue(&__path[__pos], __value, __size);
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoomBasedSensitivityModifier") == 0)
    {
        if (__index < zoomBasedSensitivityModifierCount)
        {
            __result = zoomBasedSensitivityModifier[__index].GetValue(&__path[__pos], __value, __size);
        }
    }
    else if (PARAMETER_STRCMP(__name, "gainBasedSensitivityModifier") == 0)
    {
        if (__index < gainBasedSensitivityModifierCount)
        {
            __result = gainBasedSensitivityModifier[__index].GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool sensitivityModifierArr::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, "roiBasedSensitivityModifier") == 0)
    {
        if (__index < roiBasedSensitivityModifierCount)
        {
            __result = roiBasedSensitivityModifier[__index].SetValue(&__path[__pos], __value);
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoomBasedSensitivityModifier") == 0)
    {
        if (__index < zoomBasedSensitivityModifierCount)
        {
            __result = zoomBasedSensitivityModifier[__index].SetValue(&__path[__pos], __value);
        }
    }
    else if (PARAMETER_STRCMP(__name, "gainBasedSensitivityModifier") == 0)
    {
        if (__index < gainBasedSensitivityModifierCount)
        {
            __result = gainBasedSensitivityModifier[__index].SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

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

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

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

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

    return __result;
}

bool sensitivitySetting::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, "VMType") == 0)
    {
        ParameterUtils::DoubleToString((double)(UINT32)VMType, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "value") == 0)
    {
        ParameterUtils::DoubleToString((double)value, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "sensitivityTriggerSet") == 0)
    {
        if (__index < sensitivityTriggerSetCount)
        {
            __result = sensitivityTriggerSet[__index].GetValue(&__path[__pos], __value, __size);
        }
    }
    else if (PARAMETER_STRCMP(__name, "VMSensitivityModifier") == 0)
    {
        if (VMSensitivityModifierExists)
        {
            __result = VMSensitivityModifier.GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool sensitivitySetting::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, "VMType") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            VMType = (chromatixVMSetTypeEnum)(UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "value") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            value = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "sensitivityTriggerSet") == 0)
    {
        if (__index < sensitivityTriggerSetCount)
        {
            __result = sensitivityTriggerSet[__index].SetValue(&__path[__pos], __value);
        }
    }
    else if (PARAMETER_STRCMP(__name, "VMSensitivityModifier") == 0)
    {
        if (VMSensitivityModifierExists)
        {
            __result = VMSensitivityModifier.SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

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

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

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

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

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

    return __result;
}

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

    return __result;
}

bool chromatixTopoAlgUtilType::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, "touchAssist") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            touchAssist = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "sensitivityTriggerArr") == 0)
    {
        if (__index < sensitivityTriggerArrCount)
        {
            __result = sensitivityTriggerArr[__index].SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

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

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

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

    return __result;
}

bool chromatixTopoDepthAFType::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, "defocusLow") == 0)
    {
        ParameterUtils::DoubleToString((double)defocusLow, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "defocusHigh") == 0)
    {
        ParameterUtils::DoubleToString((double)defocusHigh, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "defocusPanning") == 0)
    {
        ParameterUtils::DoubleToString((double)defocusPanning, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "sadPanning") == 0)
    {
        ParameterUtils::DoubleToString((double)sadPanning, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "gyroPanning") == 0)
    {
        ParameterUtils::DoubleToString((double)gyroPanning, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "motionPanning") == 0)
    {
        ParameterUtils::DoubleToString((double)motionPanning, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "DepthAFTopoReservedSensitivity") == 0)
    {
        if (__index < DepthAFTopoReservedSensitivityCount)
        {
            ParameterUtils::DoubleToString((double)DepthAFTopoReservedSensitivity[__index], __value, __size, 0);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < DepthAFTopoReservedSensitivityCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)DepthAFTopoReservedSensitivity[i], &__value[__valuePos], (INT32)(__size - __valuePos), 0);
            }
            __result = true;
        }
    }
    else if (PARAMETER_STRCMP(__name, "sensitivityTriggerArr") == 0)
    {
        if (__index < sensitivityTriggerArrCount)
        {
            __result = sensitivityTriggerArr[__index].GetValue(&__path[__pos], __value, __size);
        }
    }
    else if (PARAMETER_STRCMP(__name, "topoSensitivityModifier") == 0)
    {
        if (topoSensitivityModifierExists)
        {
            __result = topoSensitivityModifier.GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool chromatixTopoDepthAFType::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, "defocusLow") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            defocusLow = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "defocusHigh") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            defocusHigh = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "defocusPanning") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            defocusPanning = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "sadPanning") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            sadPanning = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "gyroPanning") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            gyroPanning = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "motionPanning") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            motionPanning = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "DepthAFTopoReservedSensitivity") == 0)
    {
        if (__index < DepthAFTopoReservedSensitivityCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                DepthAFTopoReservedSensitivity[__index] = (INT32)dblValue; 
            }
        }
        else
        {
            const SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __valuePos = 0;

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

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

                const double dblValue = ParameterUtils::StringToDouble(__valueStr, __result);
                if (__result)
                {
                    DepthAFTopoReservedSensitivity[__index] = (INT32)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }
    else if (PARAMETER_STRCMP(__name, "sensitivityTriggerArr") == 0)
    {
        if (__index < sensitivityTriggerArrCount)
        {
            __result = sensitivityTriggerArr[__index].SetValue(&__path[__pos], __value);
        }
    }
    else if (PARAMETER_STRCMP(__name, "topoSensitivityModifier") == 0)
    {
        if (topoSensitivityModifierExists)
        {
            __result = topoSensitivityModifier.SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

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

    return __result;
}

bool chromatixTopoDefaultMixerType::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, "secondarySceneChangeCntThres") == 0)
    {
        ParameterUtils::DoubleToString((double)secondarySceneChangeCntThres, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "secondaryUnstableCntThres") == 0)
    {
        ParameterUtils::DoubleToString((double)secondaryUnstableCntThres, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "gyroEnable") == 0)
    {
        ParameterUtils::DoubleToString((double)gyroEnable, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "sensitivityTriggerArr") == 0)
    {
        if (__index < sensitivityTriggerArrCount)
        {
            __result = sensitivityTriggerArr[__index].GetValue(&__path[__pos], __value, __size);
        }
    }
    else if (PARAMETER_STRCMP(__name, "topoSensitivityModifier") == 0)
    {
        if (topoSensitivityModifierExists)
        {
            __result = topoSensitivityModifier.GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool chromatixTopoDefaultMixerType::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, "secondarySceneChangeCntThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            secondarySceneChangeCntThres = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "secondaryUnstableCntThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            secondaryUnstableCntThres = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "gyroEnable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            gyroEnable = (globalelements::enable_flag_type)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "sensitivityTriggerArr") == 0)
    {
        if (__index < sensitivityTriggerArrCount)
        {
            __result = sensitivityTriggerArr[__index].SetValue(&__path[__pos], __value);
        }
    }
    else if (PARAMETER_STRCMP(__name, "topoSensitivityModifier") == 0)
    {
        if (topoSensitivityModifierExists)
        {
            __result = topoSensitivityModifier.SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

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

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

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

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

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

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

    return __result;
}

bool chromatixTopoTOFType::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, "profileIndex") == 0)
    {
        ParameterUtils::DoubleToString((double)(UINT32)profileIndex, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "distance") == 0)
    {
        ParameterUtils::DoubleToString((double)distance, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "TOFconfidenceHigh") == 0)
    {
        ParameterUtils::DoubleToString((double)TOFconfidenceHigh, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "TOFconfidenceMedium") == 0)
    {
        ParameterUtils::DoubleToString((double)TOFconfidenceMedium, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "SADPanning") == 0)
    {
        ParameterUtils::DoubleToString((double)SADPanning, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "gyroPanning") == 0)
    {
        ParameterUtils::DoubleToString((double)gyroPanning, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "motionPanning") == 0)
    {
        ParameterUtils::DoubleToString((double)motionPanning, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "TOFTopoReservedSensitivity") == 0)
    {
        if (__index < TOFTopoReservedSensitivityCount)
        {
            ParameterUtils::DoubleToString((double)TOFTopoReservedSensitivity[__index], __value, __size, 0);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < TOFTopoReservedSensitivityCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)TOFTopoReservedSensitivity[i], &__value[__valuePos], (INT32)(__size - __valuePos), 0);
            }
            __result = true;
        }
    }
    else if (PARAMETER_STRCMP(__name, "sensitivityTriggerArr") == 0)
    {
        if (__index < sensitivityTriggerArrCount)
        {
            __result = sensitivityTriggerArr[__index].GetValue(&__path[__pos], __value, __size);
        }
    }
    else if (PARAMETER_STRCMP(__name, "topoSensitivityModifier") == 0)
    {
        if (topoSensitivityModifierExists)
        {
            __result = topoSensitivityModifier.GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool chromatixTopoTOFType::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, "profileIndex") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            profileIndex = (chromatixTopoTOFEnum)(UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "distance") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            distance = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "TOFconfidenceHigh") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            TOFconfidenceHigh = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "TOFconfidenceMedium") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            TOFconfidenceMedium = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "SADPanning") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            SADPanning = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "gyroPanning") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            gyroPanning = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "motionPanning") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            motionPanning = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "TOFTopoReservedSensitivity") == 0)
    {
        if (__index < TOFTopoReservedSensitivityCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                TOFTopoReservedSensitivity[__index] = (INT32)dblValue; 
            }
        }
        else
        {
            const SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __valuePos = 0;

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

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

                const double dblValue = ParameterUtils::StringToDouble(__valueStr, __result);
                if (__result)
                {
                    TOFTopoReservedSensitivity[__index] = (INT32)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }
    else if (PARAMETER_STRCMP(__name, "sensitivityTriggerArr") == 0)
    {
        if (__index < sensitivityTriggerArrCount)
        {
            __result = sensitivityTriggerArr[__index].SetValue(&__path[__pos], __value);
        }
    }
    else if (PARAMETER_STRCMP(__name, "topoSensitivityModifier") == 0)
    {
        if (topoSensitivityModifierExists)
        {
            __result = topoSensitivityModifier.SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

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

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

    return __result;
}

bool chromatixTopoPDAFType::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, "profileIndex") == 0)
    {
        ParameterUtils::DoubleToString((double)(UINT32)profileIndex, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "defocusLow") == 0)
    {
        ParameterUtils::DoubleToString((double)defocusLow, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "defocusHigh") == 0)
    {
        ParameterUtils::DoubleToString((double)defocusHigh, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "PDAFconfidence") == 0)
    {
        ParameterUtils::DoubleToString((double)PDAFconfidence, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "SADPanning") == 0)
    {
        ParameterUtils::DoubleToString((double)SADPanning, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "gyroPanning") == 0)
    {
        ParameterUtils::DoubleToString((double)gyroPanning, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "motionPanning") == 0)
    {
        ParameterUtils::DoubleToString((double)motionPanning, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "PDAFTopoReservedSensitivity") == 0)
    {
        if (__index < PDAFTopoReservedSensitivityCount)
        {
            ParameterUtils::DoubleToString((double)PDAFTopoReservedSensitivity[__index], __value, __size, 0);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < PDAFTopoReservedSensitivityCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)PDAFTopoReservedSensitivity[i], &__value[__valuePos], (INT32)(__size - __valuePos), 0);
            }
            __result = true;
        }
    }
    else if (PARAMETER_STRCMP(__name, "sensitivityTriggerArr") == 0)
    {
        if (__index < sensitivityTriggerArrCount)
        {
            __result = sensitivityTriggerArr[__index].GetValue(&__path[__pos], __value, __size);
        }
    }
    else if (PARAMETER_STRCMP(__name, "topoSensitivityModifier") == 0)
    {
        if (topoSensitivityModifierExists)
        {
            __result = topoSensitivityModifier.GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool chromatixTopoPDAFType::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, "profileIndex") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            profileIndex = (chromatixTopoPDAFEnum)(UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "defocusLow") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            defocusLow = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "defocusHigh") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            defocusHigh = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "PDAFconfidence") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            PDAFconfidence = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "SADPanning") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            SADPanning = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "gyroPanning") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            gyroPanning = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "motionPanning") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            motionPanning = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "PDAFTopoReservedSensitivity") == 0)
    {
        if (__index < PDAFTopoReservedSensitivityCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                PDAFTopoReservedSensitivity[__index] = (INT32)dblValue; 
            }
        }
        else
        {
            const SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __valuePos = 0;

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

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

                const double dblValue = ParameterUtils::StringToDouble(__valueStr, __result);
                if (__result)
                {
                    PDAFTopoReservedSensitivity[__index] = (INT32)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }
    else if (PARAMETER_STRCMP(__name, "sensitivityTriggerArr") == 0)
    {
        if (__index < sensitivityTriggerArrCount)
        {
            __result = sensitivityTriggerArr[__index].SetValue(&__path[__pos], __value);
        }
    }
    else if (PARAMETER_STRCMP(__name, "topoSensitivityModifier") == 0)
    {
        if (topoSensitivityModifierExists)
        {
            __result = topoSensitivityModifier.SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

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

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

    return __result;
}

bool chromatixTopoCAFType::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, "profileIndex") == 0)
    {
        ParameterUtils::DoubleToString((double)(UINT32)profileIndex, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "SADR") == 0)
    {
        ParameterUtils::DoubleToString((double)SADR, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "gyro") == 0)
    {
        ParameterUtils::DoubleToString((double)gyro, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "motion") == 0)
    {
        ParameterUtils::DoubleToString((double)motion, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "gyroPanning") == 0)
    {
        ParameterUtils::DoubleToString((double)gyroPanning, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "motionPanning") == 0)
    {
        ParameterUtils::DoubleToString((double)motionPanning, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "SADPanning") == 0)
    {
        ParameterUtils::DoubleToString((double)SADPanning, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "FV") == 0)
    {
        ParameterUtils::DoubleToString((double)FV, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "faceTriggerHold") == 0)
    {
        ParameterUtils::DoubleToString((double)faceTriggerHold, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "CAFSceneChangeHold") == 0)
    {
        ParameterUtils::DoubleToString((double)CAFSceneChangeHold, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "CAFTopoReservedSensitivity") == 0)
    {
        if (__index < CAFTopoReservedSensitivityCount)
        {
            ParameterUtils::DoubleToString((double)CAFTopoReservedSensitivity[__index], __value, __size, 0);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < CAFTopoReservedSensitivityCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)CAFTopoReservedSensitivity[i], &__value[__valuePos], (INT32)(__size - __valuePos), 0);
            }
            __result = true;
        }
    }
    else if (PARAMETER_STRCMP(__name, "sensitivityTriggerArr") == 0)
    {
        if (__index < sensitivityTriggerArrCount)
        {
            __result = sensitivityTriggerArr[__index].GetValue(&__path[__pos], __value, __size);
        }
    }
    else if (PARAMETER_STRCMP(__name, "topoSensitivityModifier") == 0)
    {
        if (topoSensitivityModifierExists)
        {
            __result = topoSensitivityModifier.GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool chromatixTopoCAFType::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, "profileIndex") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            profileIndex = (chromatixTopoCAFEnum)(UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "SADR") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            SADR = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "gyro") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            gyro = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "motion") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            motion = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "gyroPanning") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            gyroPanning = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "motionPanning") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            motionPanning = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "SADPanning") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            SADPanning = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "FV") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            FV = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "faceTriggerHold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            faceTriggerHold = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "CAFSceneChangeHold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            CAFSceneChangeHold = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "CAFTopoReservedSensitivity") == 0)
    {
        if (__index < CAFTopoReservedSensitivityCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                CAFTopoReservedSensitivity[__index] = (INT32)dblValue; 
            }
        }
        else
        {
            const SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __valuePos = 0;

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

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

                const double dblValue = ParameterUtils::StringToDouble(__valueStr, __result);
                if (__result)
                {
                    CAFTopoReservedSensitivity[__index] = (INT32)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }
    else if (PARAMETER_STRCMP(__name, "sensitivityTriggerArr") == 0)
    {
        if (__index < sensitivityTriggerArrCount)
        {
            __result = sensitivityTriggerArr[__index].SetValue(&__path[__pos], __value);
        }
    }
    else if (PARAMETER_STRCMP(__name, "topoSensitivityModifier") == 0)
    {
        if (topoSensitivityModifierExists)
        {
            __result = topoSensitivityModifier.SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    return __result;
}

bool chromatixMonitorAlgoConfigType::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, "topoCAF") == 0)
    {
        __result = topoCAF.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "topoPDAF") == 0)
    {
        __result = topoPDAF.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "topoTOF") == 0)
    {
        __result = topoTOF.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "topoDefaultMixer") == 0)
    {
        __result = topoDefaultMixer.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "topoDepthAF") == 0)
    {
        __result = topoDepthAF.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "globalSensitivityModifier") == 0)
    {
        if (globalSensitivityModifierExists)
        {
            __result = globalSensitivityModifier.GetValue(&__path[__pos], __value, __size);
        }
    }
    else if (PARAMETER_STRCMP(__name, "topoAlgUtil") == 0)
    {
        __result = topoAlgUtil.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool chromatixMonitorAlgoConfigType::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, "topoCAF") == 0)
    {
        __result = topoCAF.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "topoPDAF") == 0)
    {
        __result = topoPDAF.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "topoTOF") == 0)
    {
        __result = topoTOF.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "topoDefaultMixer") == 0)
    {
        __result = topoDefaultMixer.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "topoDepthAF") == 0)
    {
        __result = topoDepthAF.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "globalSensitivityModifier") == 0)
    {
        if (globalSensitivityModifierExists)
        {
            __result = globalSensitivityModifier.SetValue(&__path[__pos], __value);
        }
    }
    else if (PARAMETER_STRCMP(__name, "topoAlgUtil") == 0)
    {
        __result = topoAlgUtil.SetValue(&__path[__pos], __value);
    }

    return __result;
}

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

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

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

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

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

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

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

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

    return __result;
}

bool chromatixAFMONITORType::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 chromatixAFMONITORType::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 chromatixAFMONITORType::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 chromatixAFMONITORType::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 chromatixAFMONITORType::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 chromatixAFMONITORType::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
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
chromatixAFMONITORTypeClass::chromatixAFMONITORTypeClass(
    const CHAR* name)
    : ParameterModule(name, MAJOR, MINOR, PATCH, nullptr)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(monitorAlgoConfig);
    PARAMETER_INITIALIZE(valueMonitorBank);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
chromatixAFMONITORTypeClass::chromatixAFMONITORTypeClass(
    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(monitorAlgoConfig);
    PARAMETER_INITIALIZE(valueMonitorBank);
}

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


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load chromatixIirFltrCfgType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixIirFltrCfgType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(enable);
    PARAMETER_INITIALIZE(numOfSamples);
    PARAMETER_INITIALIZE(coeffNumerator);
    PARAMETER_INITIALIZE(coeffDenominator);

    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 = 0xe9cb3aeedc6608b1;
        entry->ReadSimpleTypeFixedArray(&numOfSamples, 1, localParams);
        localParams.NameHash = 0xe4210be036f4bfdb;
        entry->ReadSimpleTypeFixedArray(&coeffNumerator, 1, localParams);
        localParams.NameHash = 0xc3311fdcc3473132;
        entry->ReadSimpleTypeFixedArray(&coeffDenominator, 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 chromatixIirFltrCfgType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        chromatixIirFltrCfgType* arrayPtr = (chromatixIirFltrCfgType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load chromatixMvavgFltrCfgType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixMvavgFltrCfgType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(enable);
    PARAMETER_INITIALIZE(numOfSamples);

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load chromatixMedianFltrCfgType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixMedianFltrCfgType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(enable);
    PARAMETER_INITIALIZE(numOfSamples);

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load chromatixSensProfileType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixSensProfileType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(triggerThreshold);
    PARAMETER_INITIALIZE(consecutiveCountThreshold);
    PARAMETER_INITIALIZE(frameToArmed);
    PARAMETER_INITIALIZE(highCountThreshold);
    PARAMETER_INITIALIZE(lowCountThreshold);
    PARAMETER_INITIALIZE(medianFltrCfg);
    PARAMETER_INITIALIZE(mvavgFltrCfg);
    PARAMETER_INITIALIZE(IIRFltrCfg);

    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 = 0x8b18d437338d28d6;
        entry->ReadSimpleTypeFixedArray(&triggerThreshold, 1, localParams);
        localParams.NameHash = 0x8411f71d0b12e8fb;
        entry->ReadSimpleTypeFixedArray(&consecutiveCountThreshold, 1, localParams);
        localParams.NameHash = 0x9f3569bee3a88927;
        entry->ReadSimpleTypeFixedArray(&frameToArmed, 1, localParams);
        localParams.NameHash = 0x8dd17889dd8681e3;
        entry->ReadSimpleTypeFixedArray(&highCountThreshold, 1, localParams);
        localParams.NameHash = 0xfc94adbae3a6f832;
        entry->ReadSimpleTypeFixedArray(&lowCountThreshold, 1, localParams);
        localParams.UseParent       = false;
        localParams.UseParentOffset = true;
        localParams.NameHash        = 0xe5a43ee2c27668b7;
        medianFltrCfg.Load(localParams);
        localParams.NameHash        = 0x880285824b22ba04;
        mvavgFltrCfg.Load(localParams);
        localParams.NameHash        = 0x97434dc604b53e61;
        IIRFltrCfg.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 chromatixSensProfileType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        chromatixSensProfileType* arrayPtr = (chromatixSensProfileType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load chromatixAbsoluteModeCfgType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixAbsoluteModeCfgType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(enable);
    PARAMETER_INITIALIZE(baseline);

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load chromatixValueMonitorType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixValueMonitorType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(VMSetType);
    PARAMETER_INITIALIZE(detectionType);
    PARAMETER_INITIALIZE(VMInitState);
    PARAMETER_INITIALIZE(absoluteModeCfg);
    PARAMETER_INITIALIZE(sensProfileLow);
    PARAMETER_INITIALIZE(sensProfileMed);
    PARAMETER_INITIALIZE(sensProfileHigh);

    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 = 0xa5c1f4d6485dce0c;
        entry->ReadEnumFixedArray(&VMSetType, 1, localParams);
        localParams.NameHash = 0x89777bfc140b1266;
        entry->ReadEnumFixedArray(&detectionType, 1, localParams);
        localParams.NameHash = 0xfdd6ff08179ad650;
        entry->ReadEnumFixedArray(&VMInitState, 1, localParams);
        localParams.UseParent       = false;
        localParams.UseParentOffset = true;
        localParams.NameHash        = 0xeaeb90f8d02ef678;
        absoluteModeCfg.Load(localParams);
        localParams.NameHash        = 0xe53187c74b4b634e;
        sensProfileLow.Load(localParams);
        localParams.NameHash        = 0xce972eab413f7795;
        sensProfileMed.Load(localParams);
        localParams.NameHash        = 0x9973dfba56d5c9d0;
        sensProfileHigh.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 chromatixValueMonitorType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        chromatixValueMonitorType* arrayPtr = (chromatixValueMonitorType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load chromatixValueMonitorBankType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixValueMonitorBankType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(valueMonitorCount);
    PARAMETER_INITIALIZE(valueMonitor);

    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 = 0x823fe70ca3905ae1;
        entry->ReadStructureArray(valueMonitor, valueMonitorCount, valueMonitorID, 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 chromatixValueMonitorBankType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        chromatixValueMonitorBankType* arrayPtr = (chromatixValueMonitorBankType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load sensitivityModifierArr
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void sensitivityModifierArr::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(roiBasedSensitivityModifierCount);
    PARAMETER_INITIALIZE(roiBasedSensitivityModifier);
    PARAMETER_INITIALIZE(zoomBasedSensitivityModifierCount);
    PARAMETER_INITIALIZE(zoomBasedSensitivityModifier);
    PARAMETER_INITIALIZE(gainBasedSensitivityModifierCount);
    PARAMETER_INITIALIZE(gainBasedSensitivityModifier);

    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 = 0xb612526460694aa0;
        entry->ReadStructureArray(roiBasedSensitivityModifier, roiBasedSensitivityModifierCount, roiBasedSensitivityModifierID, 0, localParams, __COUNTER__);
        localParams.NameHash = 0xf0feeae49926451c;
        entry->ReadStructureArray(zoomBasedSensitivityModifier, zoomBasedSensitivityModifierCount, zoomBasedSensitivityModifierID, 0, localParams, __COUNTER__);
        localParams.NameHash = 0x967f68cc96bd72d1;
        entry->ReadStructureArray(gainBasedSensitivityModifier, gainBasedSensitivityModifierCount, gainBasedSensitivityModifierID, 0, 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 sensitivityModifierArr::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        sensitivityModifierArr* arrayPtr = (sensitivityModifierArr*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load sensitivityTrigger
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void sensitivityTrigger::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(AECTrigger);
    PARAMETER_INITIALIZE(value);

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load sensitivitySetting
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void sensitivitySetting::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(VMType);
    PARAMETER_INITIALIZE(value);
    PARAMETER_INITIALIZE(sensitivityTriggerSetCount);
    PARAMETER_INITIALIZE(sensitivityTriggerSet);
    PARAMETER_INITIALIZE(VMSensitivityModifierExists);
    PARAMETER_INITIALIZE(VMSensitivityModifier);

    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 = 0xd48038c5ed9499e8;
        entry->ReadEnumFixedArray(&VMType, 1, localParams);
        localParams.NameHash = 0x99e86049a1c11b8b;
        entry->ReadSimpleTypeFixedArray(&value, 1, localParams);
        localParams.NameHash = 0xb42fada8a4e4665b;
        entry->ReadStructureArray(sensitivityTriggerSet, sensitivityTriggerSetCount, sensitivityTriggerSetID, 0, localParams, __COUNTER__);
        localParams.NameHash = 0xa5cfc88d9c8244d5;
        entry->ReadOptionalStructure(VMSensitivityModifier, VMSensitivityModifierExists, VMSensitivityModifierID, 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 sensitivitySetting::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        sensitivitySetting* arrayPtr = (sensitivitySetting*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load chromatixTopoAlgUtilType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixTopoAlgUtilType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(touchAssist);
    PARAMETER_INITIALIZE(sensitivityTriggerArrCount);
    PARAMETER_INITIALIZE(sensitivityTriggerArr);

    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 = 0xcac4790493c225e6;
        entry->ReadSimpleTypeFixedArray(&touchAssist, 1, localParams);
        localParams.NameHash = 0xb35cfe0c86cc3c09;
        entry->ReadStructureArray(sensitivityTriggerArr, sensitivityTriggerArrCount, sensitivityTriggerArrID, 0, 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 chromatixTopoAlgUtilType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        chromatixTopoAlgUtilType* arrayPtr = (chromatixTopoAlgUtilType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load chromatixTopoDepthAFType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixTopoDepthAFType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(defocusLow);
    PARAMETER_INITIALIZE(defocusHigh);
    PARAMETER_INITIALIZE(defocusPanning);
    PARAMETER_INITIALIZE(sadPanning);
    PARAMETER_INITIALIZE(gyroPanning);
    PARAMETER_INITIALIZE(motionPanning);
    PARAMETER_INITIALIZE(DepthAFTopoReservedSensitivityCount);
    PARAMETER_INITIALIZE(DepthAFTopoReservedSensitivity);
    PARAMETER_INITIALIZE(sensitivityTriggerArrCount);
    PARAMETER_INITIALIZE(sensitivityTriggerArr);
    PARAMETER_INITIALIZE(topoSensitivityModifierExists);
    PARAMETER_INITIALIZE(topoSensitivityModifier);

    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 = 0x8af4b15eacd04d18;
        entry->ReadSimpleTypeFixedArray(&defocusLow, 1, localParams);
        localParams.NameHash = 0x925918f0d58ec67e;
        entry->ReadSimpleTypeFixedArray(&defocusHigh, 1, localParams);
        localParams.NameHash = 0xdb4d3d5cb9d507f2;
        entry->ReadSimpleTypeFixedArray(&defocusPanning, 1, localParams);
        localParams.NameHash = 0x908dbff29f80a020;
        entry->ReadSimpleTypeFixedArray(&sadPanning, 1, localParams);
        localParams.NameHash = 0xbe7550af73299e09;
        entry->ReadSimpleTypeFixedArray(&gyroPanning, 1, localParams);
        localParams.NameHash = 0x9133ada40c8e5f54;
        entry->ReadSimpleTypeFixedArray(&motionPanning, 1, localParams);
        localParams.NameHash = 0xab85b7fc48a8ed63;
        entry->ReadSimpleTypeArray(DepthAFTopoReservedSensitivity, DepthAFTopoReservedSensitivityCount, DepthAFTopoReservedSensitivityID, 1,
            localParams, __COUNTER__);
        localParams.NameHash = 0xb35cfe0c86cc3c09;
        entry->ReadStructureArray(sensitivityTriggerArr, sensitivityTriggerArrCount, sensitivityTriggerArrID, 0, localParams, __COUNTER__);
        localParams.NameHash = 0xc493d8cf305538b2;
        entry->ReadOptionalStructure(topoSensitivityModifier, topoSensitivityModifierExists, topoSensitivityModifierID, 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 chromatixTopoDepthAFType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        chromatixTopoDepthAFType* arrayPtr = (chromatixTopoDepthAFType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load chromatixTopoDefaultMixerType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixTopoDefaultMixerType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(secondarySceneChangeCntThres);
    PARAMETER_INITIALIZE(secondaryUnstableCntThres);
    PARAMETER_INITIALIZE(gyroEnable);
    PARAMETER_INITIALIZE(sensitivityTriggerArrCount);
    PARAMETER_INITIALIZE(sensitivityTriggerArr);
    PARAMETER_INITIALIZE(topoSensitivityModifierExists);
    PARAMETER_INITIALIZE(topoSensitivityModifier);

    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 = 0xfad0bf202d15ae63;
        entry->ReadSimpleTypeFixedArray(&secondarySceneChangeCntThres, 1, localParams);
        localParams.NameHash = 0xcc070a0dfe426bec;
        entry->ReadSimpleTypeFixedArray(&secondaryUnstableCntThres, 1, localParams);
        localParams.NameHash = 0xfa8579443ce98880;
        entry->ReadSimpleTypeFixedArray(&gyroEnable, 1, localParams);
        localParams.NameHash = 0xb35cfe0c86cc3c09;
        entry->ReadStructureArray(sensitivityTriggerArr, sensitivityTriggerArrCount, sensitivityTriggerArrID, 0, localParams, __COUNTER__);
        localParams.NameHash = 0xc493d8cf305538b2;
        entry->ReadOptionalStructure(topoSensitivityModifier, topoSensitivityModifierExists, topoSensitivityModifierID, 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 chromatixTopoDefaultMixerType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        chromatixTopoDefaultMixerType* arrayPtr = (chromatixTopoDefaultMixerType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load chromatixTopoTOFType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixTopoTOFType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(profileIndex);
    PARAMETER_INITIALIZE(distance);
    PARAMETER_INITIALIZE(TOFconfidenceHigh);
    PARAMETER_INITIALIZE(TOFconfidenceMedium);
    PARAMETER_INITIALIZE(SADPanning);
    PARAMETER_INITIALIZE(gyroPanning);
    PARAMETER_INITIALIZE(motionPanning);
    PARAMETER_INITIALIZE(TOFTopoReservedSensitivityCount);
    PARAMETER_INITIALIZE(TOFTopoReservedSensitivity);
    PARAMETER_INITIALIZE(sensitivityTriggerArrCount);
    PARAMETER_INITIALIZE(sensitivityTriggerArr);
    PARAMETER_INITIALIZE(topoSensitivityModifierExists);
    PARAMETER_INITIALIZE(topoSensitivityModifier);

    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 = 0xf16e750c59a16846;
        entry->ReadEnumFixedArray(&profileIndex, 1, localParams);
        localParams.NameHash = 0xb52331a46364243a;
        entry->ReadSimpleTypeFixedArray(&distance, 1, localParams);
        localParams.NameHash = 0xbbe094f4cfe6e976;
        entry->ReadSimpleTypeFixedArray(&TOFconfidenceHigh, 1, localParams);
        localParams.NameHash = 0xd853c7d6c7eb9b3f;
        entry->ReadSimpleTypeFixedArray(&TOFconfidenceMedium, 1, localParams);
        localParams.NameHash = 0x8a2c652975672e3f;
        entry->ReadSimpleTypeFixedArray(&SADPanning, 1, localParams);
        localParams.NameHash = 0xbe7550af73299e09;
        entry->ReadSimpleTypeFixedArray(&gyroPanning, 1, localParams);
        localParams.NameHash = 0x9133ada40c8e5f54;
        entry->ReadSimpleTypeFixedArray(&motionPanning, 1, localParams);
        localParams.NameHash = 0xefc2af29ba558105;
        entry->ReadSimpleTypeArray(TOFTopoReservedSensitivity, TOFTopoReservedSensitivityCount, TOFTopoReservedSensitivityID, 1,
            localParams, __COUNTER__);
        localParams.NameHash = 0xb35cfe0c86cc3c09;
        entry->ReadStructureArray(sensitivityTriggerArr, sensitivityTriggerArrCount, sensitivityTriggerArrID, 0, localParams, __COUNTER__);
        localParams.NameHash = 0xc493d8cf305538b2;
        entry->ReadOptionalStructure(topoSensitivityModifier, topoSensitivityModifierExists, topoSensitivityModifierID, 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 chromatixTopoTOFType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        chromatixTopoTOFType* arrayPtr = (chromatixTopoTOFType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load chromatixTopoPDAFType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixTopoPDAFType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(profileIndex);
    PARAMETER_INITIALIZE(defocusLow);
    PARAMETER_INITIALIZE(defocusHigh);
    PARAMETER_INITIALIZE(PDAFconfidence);
    PARAMETER_INITIALIZE(SADPanning);
    PARAMETER_INITIALIZE(gyroPanning);
    PARAMETER_INITIALIZE(motionPanning);
    PARAMETER_INITIALIZE(PDAFTopoReservedSensitivityCount);
    PARAMETER_INITIALIZE(PDAFTopoReservedSensitivity);
    PARAMETER_INITIALIZE(sensitivityTriggerArrCount);
    PARAMETER_INITIALIZE(sensitivityTriggerArr);
    PARAMETER_INITIALIZE(topoSensitivityModifierExists);
    PARAMETER_INITIALIZE(topoSensitivityModifier);

    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 = 0xf16e750c59a16846;
        entry->ReadEnumFixedArray(&profileIndex, 1, localParams);
        localParams.NameHash = 0x8af4b15eacd04d18;
        entry->ReadSimpleTypeFixedArray(&defocusLow, 1, localParams);
        localParams.NameHash = 0x925918f0d58ec67e;
        entry->ReadSimpleTypeFixedArray(&defocusHigh, 1, localParams);
        localParams.NameHash = 0xc5dff24060b24b24;
        entry->ReadSimpleTypeFixedArray(&PDAFconfidence, 1, localParams);
        localParams.NameHash = 0x8a2c652975672e3f;
        entry->ReadSimpleTypeFixedArray(&SADPanning, 1, localParams);
        localParams.NameHash = 0xbe7550af73299e09;
        entry->ReadSimpleTypeFixedArray(&gyroPanning, 1, localParams);
        localParams.NameHash = 0x9133ada40c8e5f54;
        entry->ReadSimpleTypeFixedArray(&motionPanning, 1, localParams);
        localParams.NameHash = 0xa931df36c8f50593;
        entry->ReadSimpleTypeArray(PDAFTopoReservedSensitivity, PDAFTopoReservedSensitivityCount, PDAFTopoReservedSensitivityID, 1,
            localParams, __COUNTER__);
        localParams.NameHash = 0xb35cfe0c86cc3c09;
        entry->ReadStructureArray(sensitivityTriggerArr, sensitivityTriggerArrCount, sensitivityTriggerArrID, 0, localParams, __COUNTER__);
        localParams.NameHash = 0xc493d8cf305538b2;
        entry->ReadOptionalStructure(topoSensitivityModifier, topoSensitivityModifierExists, topoSensitivityModifierID, 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 chromatixTopoPDAFType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        chromatixTopoPDAFType* arrayPtr = (chromatixTopoPDAFType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load chromatixTopoCAFType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixTopoCAFType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(profileIndex);
    PARAMETER_INITIALIZE(SADR);
    PARAMETER_INITIALIZE(gyro);
    PARAMETER_INITIALIZE(motion);
    PARAMETER_INITIALIZE(gyroPanning);
    PARAMETER_INITIALIZE(motionPanning);
    PARAMETER_INITIALIZE(SADPanning);
    PARAMETER_INITIALIZE(FV);
    PARAMETER_INITIALIZE(faceTriggerHold);
    PARAMETER_INITIALIZE(CAFSceneChangeHold);
    PARAMETER_INITIALIZE(CAFTopoReservedSensitivityCount);
    PARAMETER_INITIALIZE(CAFTopoReservedSensitivity);
    PARAMETER_INITIALIZE(sensitivityTriggerArrCount);
    PARAMETER_INITIALIZE(sensitivityTriggerArr);
    PARAMETER_INITIALIZE(topoSensitivityModifierExists);
    PARAMETER_INITIALIZE(topoSensitivityModifier);

    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 = 0xf16e750c59a16846;
        entry->ReadEnumFixedArray(&profileIndex, 1, localParams);
        localParams.NameHash = 0xe4994b436c7b5171;
        entry->ReadSimpleTypeFixedArray(&SADR, 1, localParams);
        localParams.NameHash = 0xf5a299c70485a3d3;
        entry->ReadSimpleTypeFixedArray(&gyro, 1, localParams);
        localParams.NameHash = 0xdd138519bb67f559;
        entry->ReadSimpleTypeFixedArray(&motion, 1, localParams);
        localParams.NameHash = 0xbe7550af73299e09;
        entry->ReadSimpleTypeFixedArray(&gyroPanning, 1, localParams);
        localParams.NameHash = 0x9133ada40c8e5f54;
        entry->ReadSimpleTypeFixedArray(&motionPanning, 1, localParams);
        localParams.NameHash = 0x8a2c652975672e3f;
        entry->ReadSimpleTypeFixedArray(&SADPanning, 1, localParams);
        localParams.NameHash = 0x8ada75debeb106b6;
        entry->ReadSimpleTypeFixedArray(&FV, 1, localParams);
        localParams.NameHash = 0x9018be2640f9de43;
        entry->ReadSimpleTypeFixedArray(&faceTriggerHold, 1, localParams);
        localParams.NameHash = 0x8b023f50e03f900b;
        entry->ReadSimpleTypeFixedArray(&CAFSceneChangeHold, 1, localParams);
        localParams.NameHash = 0xe76e12511676c6a2;
        entry->ReadSimpleTypeArray(CAFTopoReservedSensitivity, CAFTopoReservedSensitivityCount, CAFTopoReservedSensitivityID, 1,
            localParams, __COUNTER__);
        localParams.NameHash = 0xb35cfe0c86cc3c09;
        entry->ReadStructureArray(sensitivityTriggerArr, sensitivityTriggerArrCount, sensitivityTriggerArrID, 0, localParams, __COUNTER__);
        localParams.NameHash = 0xc493d8cf305538b2;
        entry->ReadOptionalStructure(topoSensitivityModifier, topoSensitivityModifierExists, topoSensitivityModifierID, 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 chromatixTopoCAFType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        chromatixTopoCAFType* arrayPtr = (chromatixTopoCAFType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load chromatixMonitorAlgoConfigType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixMonitorAlgoConfigType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(topoCAF);
    PARAMETER_INITIALIZE(topoPDAF);
    PARAMETER_INITIALIZE(topoTOF);
    PARAMETER_INITIALIZE(topoDefaultMixer);
    PARAMETER_INITIALIZE(topoDepthAF);
    PARAMETER_INITIALIZE(globalSensitivityModifierExists);
    PARAMETER_INITIALIZE(globalSensitivityModifier);
    PARAMETER_INITIALIZE(topoAlgUtil);

    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        = 0xf47476ae811c52a2;
        topoCAF.Load(localParams);
        localParams.NameHash        = 0xfc5c484ebad9b927;
        topoPDAF.Load(localParams);
        localParams.NameHash        = 0xc61af47e0c1d9c49;
        topoTOF.Load(localParams);
        localParams.NameHash        = 0xd8fb077383009f74;
        topoDefaultMixer.Load(localParams);
        localParams.NameHash        = 0x8fefc7d04f31734d;
        topoDepthAF.Load(localParams);
        localParams.NameHash = 0xa88e6bfabf7ab7bf;
        entry->ReadOptionalStructure(globalSensitivityModifier, globalSensitivityModifierExists, globalSensitivityModifierID, localParams);
        localParams.NameHash        = 0xd097768696df759d;
        topoAlgUtil.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 chromatixMonitorAlgoConfigType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        chromatixMonitorAlgoConfigType* arrayPtr = (chromatixMonitorAlgoConfigType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load chromatixAFMONITORType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixAFMONITORType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(monitorAlgoConfig);
    PARAMETER_INITIALIZE(valueMonitorBank);

    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        = 0xa4820261423e1453;
        monitorAlgoConfig.Load(localParams);
        localParams.NameHash        = 0xa45c546b24c39902;
        valueMonitorBank.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 chromatixAFMONITORType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        chromatixAFMONITORType* arrayPtr = (chromatixAFMONITORType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload chromatixValueMonitorBankType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixValueMonitorBankType::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, valueMonitor);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload sensitivityModifierArr
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void sensitivityModifierArr::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, roiBasedSensitivityModifier);
    ParameterFileSymbolTable::ReleaseObject(__table, zoomBasedSensitivityModifier);
    ParameterFileSymbolTable::ReleaseObject(__table, gainBasedSensitivityModifier);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload sensitivitySetting
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void sensitivitySetting::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, sensitivityTriggerSet);
    VMSensitivityModifier.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload chromatixTopoAlgUtilType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixTopoAlgUtilType::Unload(ParameterFileSymbolTable* const __table)
{
    for (UINT32 i = 0; sensitivityTriggerArr != nullptr && i < sensitivityTriggerArrCount; i++)
    {
        sensitivityTriggerArr[i].Unload(__table);
    }
    ParameterFileSymbolTable::ReleaseObject(__table, sensitivityTriggerArr);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload chromatixTopoDepthAFType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixTopoDepthAFType::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, DepthAFTopoReservedSensitivity);
    for (UINT32 i = 0; sensitivityTriggerArr != nullptr && i < sensitivityTriggerArrCount; i++)
    {
        sensitivityTriggerArr[i].Unload(__table);
    }
    ParameterFileSymbolTable::ReleaseObject(__table, sensitivityTriggerArr);
    topoSensitivityModifier.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload chromatixTopoDefaultMixerType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixTopoDefaultMixerType::Unload(ParameterFileSymbolTable* const __table)
{
    for (UINT32 i = 0; sensitivityTriggerArr != nullptr && i < sensitivityTriggerArrCount; i++)
    {
        sensitivityTriggerArr[i].Unload(__table);
    }
    ParameterFileSymbolTable::ReleaseObject(__table, sensitivityTriggerArr);
    topoSensitivityModifier.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload chromatixTopoTOFType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixTopoTOFType::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, TOFTopoReservedSensitivity);
    for (UINT32 i = 0; sensitivityTriggerArr != nullptr && i < sensitivityTriggerArrCount; i++)
    {
        sensitivityTriggerArr[i].Unload(__table);
    }
    ParameterFileSymbolTable::ReleaseObject(__table, sensitivityTriggerArr);
    topoSensitivityModifier.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload chromatixTopoPDAFType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixTopoPDAFType::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, PDAFTopoReservedSensitivity);
    for (UINT32 i = 0; sensitivityTriggerArr != nullptr && i < sensitivityTriggerArrCount; i++)
    {
        sensitivityTriggerArr[i].Unload(__table);
    }
    ParameterFileSymbolTable::ReleaseObject(__table, sensitivityTriggerArr);
    topoSensitivityModifier.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload chromatixTopoCAFType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixTopoCAFType::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, CAFTopoReservedSensitivity);
    for (UINT32 i = 0; sensitivityTriggerArr != nullptr && i < sensitivityTriggerArrCount; i++)
    {
        sensitivityTriggerArr[i].Unload(__table);
    }
    ParameterFileSymbolTable::ReleaseObject(__table, sensitivityTriggerArr);
    topoSensitivityModifier.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload chromatixMonitorAlgoConfigType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixMonitorAlgoConfigType::Unload(ParameterFileSymbolTable* const __table)
{
    topoCAF.Unload(__table);
    topoPDAF.Unload(__table);
    topoTOF.Unload(__table);
    topoDefaultMixer.Unload(__table);
    topoDepthAF.Unload(__table);
    globalSensitivityModifier.Unload(__table);
    topoAlgUtil.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload chromatixAFMONITORType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixAFMONITORType::Unload(ParameterFileSymbolTable* const __table)
{
    parameter_version.Unload(__table);
    monitorAlgoConfig.Unload(__table);
    valueMonitorBank.Unload(__table);
}

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

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

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

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

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

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

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

AFMONITORELEMENTS_NAMESPACE_END
