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

#include "aectracker.h"
#include "parametersetmanager.h"

AECTRACKER_NAMESPACE_BEGIN

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

    return __result;
}

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

    return __result;
}

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

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

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

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

    return __result;
}

bool TrackerMeteringType::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, "enableTrackerROI") == 0)
    {
        ParameterUtils::DoubleToString((double)enableTrackerROI, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "weightTemporalFilter") == 0)
    {
        ParameterUtils::DoubleToString((double)weightTemporalFilter, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "centerWeightStrength") == 0)
    {
        ParameterUtils::DoubleToString((double)centerWeightStrength, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "enableLuxTrackerTarget") == 0)
    {
        ParameterUtils::DoubleToString((double)enableLuxTrackerTarget, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "luxTrackerLumaTarget") == 0)
    {
        __result = luxTrackerLumaTarget.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "statsUpdateDelayTimeEnter") == 0)
    {
        ParameterUtils::DoubleToString((double)statsUpdateDelayTimeEnter, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "statsUpdateDelayTimeExit") == 0)
    {
        ParameterUtils::DoubleToString((double)statsUpdateDelayTimeExit, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "trackerWeight") == 0)
    {
        __result = trackerWeight.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "trackerLumaWeightLuxIndexTrigger") == 0)
    {
        __result = trackerLumaWeightLuxIndexTrigger.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "trackerSize") == 0)
    {
        __result = trackerSize.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "trackerSizeWeightLuxIndexTrigger") == 0)
    {
        __result = trackerSizeWeightLuxIndexTrigger.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "enableTrackerROIHistAdj") == 0)
    {
        ParameterUtils::DoubleToString((double)enableTrackerROIHistAdj, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "ROIHistAdjZone") == 0)
    {
        if (__index < ROIHistAdjZoneCount)
        {
            __result = ROIHistAdjZone[__index].GetValue(&__path[__pos], __value, __size);
        }
    }
    else if (PARAMETER_STRCMP(__name, "ROIShape") == 0)
    {
        ParameterUtils::DoubleToString((double)(UINT32)ROIShape, __value, __size, 0);
        __result = true;
    }

    return __result;
}

bool TrackerMeteringType::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, "enableTrackerROI") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enableTrackerROI = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "weightTemporalFilter") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            weightTemporalFilter = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "centerWeightStrength") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            centerWeightStrength = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "enableLuxTrackerTarget") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enableLuxTrackerTarget = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "luxTrackerLumaTarget") == 0)
    {
        __result = luxTrackerLumaTarget.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "statsUpdateDelayTimeEnter") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            statsUpdateDelayTimeEnter = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "statsUpdateDelayTimeExit") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            statsUpdateDelayTimeExit = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "trackerWeight") == 0)
    {
        __result = trackerWeight.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "trackerLumaWeightLuxIndexTrigger") == 0)
    {
        __result = trackerLumaWeightLuxIndexTrigger.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "trackerSize") == 0)
    {
        __result = trackerSize.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "trackerSizeWeightLuxIndexTrigger") == 0)
    {
        __result = trackerSizeWeightLuxIndexTrigger.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "enableTrackerROIHistAdj") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enableTrackerROIHistAdj = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "ROIHistAdjZone") == 0)
    {
        if (__index < ROIHistAdjZoneCount)
        {
            __result = ROIHistAdjZone[__index].SetValue(&__path[__pos], __value);
        }
    }
    else if (PARAMETER_STRCMP(__name, "ROIShape") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            ROIShape = (aecglobalelements::AECMeteringROIShapeType)(UINT32)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

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

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

    return __result;
}

bool AECTrackerType::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 AECTrackerType::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 AECTrackerType::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 AECTrackerType::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 AECTrackerType::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 AECTrackerType::parameter_versionStruct::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

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

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

    return __result;
}

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

    return __result;
}

bool AECTrackerType::statsROIProcessStruct::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, "statsROIProcessEnable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            statsROIProcessEnable = (statsglobalelements::glbEnableFlagType)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "statsROIPriority") == 0)
    {
        __result = statsROIPriority.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "statsROIStable") == 0)
    {
        __result = statsROIStable.SetValue(&__path[__pos], __value);
    }

    return __result;
}

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

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

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

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

    return __result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Default Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AECTrackerTypeClass::AECTrackerTypeClass(
    const CHAR* name)
    : ParameterModule(name, MAJOR, MINOR, PATCH, nullptr)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(trackerMtr);
    PARAMETER_INITIALIZE(trackerConv);
    PARAMETER_INITIALIZE(statsROIProcess);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AECTrackerTypeClass::AECTrackerTypeClass(
    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(trackerMtr);
    PARAMETER_INITIALIZE(trackerConv);
    PARAMETER_INITIALIZE(statsROIProcess);
}

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


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load TrackerConvergenceType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void TrackerConvergenceType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(convSpeedAdjRatio);
    PARAMETER_INITIALIZE(speedAdjDelayTimeEnter);
    PARAMETER_INITIALIZE(speedAdjDelayTimeExit);

    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 = 0xd078111e92bb6122;
        entry->ReadSimpleTypeFixedArray(&convSpeedAdjRatio, 1, localParams);
        localParams.NameHash = 0xe6454b87db92e689;
        entry->ReadSimpleTypeFixedArray(&speedAdjDelayTimeEnter, 1, localParams);
        localParams.NameHash = 0xf3ece64f8efa43a6;
        entry->ReadSimpleTypeFixedArray(&speedAdjDelayTimeExit, 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 TrackerConvergenceType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        TrackerConvergenceType* arrayPtr = (TrackerConvergenceType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load TrackerMeteringType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void TrackerMeteringType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(enableTrackerROI);
    PARAMETER_INITIALIZE(weightTemporalFilter);
    PARAMETER_INITIALIZE(centerWeightStrength);
    PARAMETER_INITIALIZE(enableLuxTrackerTarget);
    PARAMETER_INITIALIZE(luxTrackerLumaTarget);
    PARAMETER_INITIALIZE(statsUpdateDelayTimeEnter);
    PARAMETER_INITIALIZE(statsUpdateDelayTimeExit);
    PARAMETER_INITIALIZE(trackerWeight);
    PARAMETER_INITIALIZE(trackerLumaWeightLuxIndexTrigger);
    PARAMETER_INITIALIZE(trackerSize);
    PARAMETER_INITIALIZE(trackerSizeWeightLuxIndexTrigger);
    PARAMETER_INITIALIZE(enableTrackerROIHistAdj);
    PARAMETER_INITIALIZE(ROIHistAdjZoneCount);
    PARAMETER_INITIALIZE(ROIHistAdjZone);
    PARAMETER_INITIALIZE(ROIShape);

    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 = 0xf20b782c3a674e88;
        entry->ReadSimpleTypeFixedArray(&enableTrackerROI, 1, localParams);
        localParams.NameHash = 0x89d1f3f0adc8836b;
        entry->ReadSimpleTypeFixedArray(&weightTemporalFilter, 1, localParams);
        localParams.NameHash = 0xea09649400e14eee;
        entry->ReadSimpleTypeFixedArray(&centerWeightStrength, 1, localParams);
        localParams.NameHash = 0x8140d6861ff1a7c6;
        entry->ReadSimpleTypeFixedArray(&enableLuxTrackerTarget, 1, localParams);
        localParams.UseParent       = false;
        localParams.UseParentOffset = true;
        localParams.NameHash        = 0xd365037dc5097d1e;
        luxTrackerLumaTarget.Load(localParams);
        localParams.NameHash = 0xf376ffa52a4198de;
        entry->ReadSimpleTypeFixedArray(&statsUpdateDelayTimeEnter, 1, localParams);
        localParams.NameHash = 0xb8c27e91d6062957;
        entry->ReadSimpleTypeFixedArray(&statsUpdateDelayTimeExit, 1, localParams);
        localParams.NameHash        = 0xf11b7a23569d249f;
        trackerWeight.Load(localParams);
        localParams.NameHash        = 0xebb7a185dec60ddc;
        trackerLumaWeightLuxIndexTrigger.Load(localParams);
        localParams.NameHash        = 0xab93d3b6051e9c73;
        trackerSize.Load(localParams);
        localParams.NameHash        = 0xb5f4c6c6972dd95e;
        trackerSizeWeightLuxIndexTrigger.Load(localParams);
        localParams.NameHash = 0xacbb15b5b5aacee5;
        entry->ReadSimpleTypeFixedArray(&enableTrackerROIHistAdj, 1, localParams);
        localParams.NameHash = 0xe3ab1231ff0d5bc0;
        entry->ReadStructureArray(ROIHistAdjZone, ROIHistAdjZoneCount, ROIHistAdjZoneID, 1, localParams, __COUNTER__);
        localParams.NameHash = 0xe76594ca3cf46629;
        entry->ReadEnumFixedArray(&ROIShape, 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 TrackerMeteringType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        TrackerMeteringType* arrayPtr = (TrackerMeteringType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load TrackerMeteringType_trackerLumaWeightLuxIndexTriggerStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void TrackerMeteringType::trackerLumaWeightLuxIndexTriggerStruct::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(enableTrackerLumaTrigger);
    PARAMETER_INITIALIZE(LuxTrackerLumaWeight);

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load TrackerMeteringType_trackerSizeWeightLuxIndexTriggerStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void TrackerMeteringType::trackerSizeWeightLuxIndexTriggerStruct::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(enableTrackerSizeTrigger);
    PARAMETER_INITIALIZE(LuxTrackerSizeWeight);

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load AECTrackerType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECTrackerType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(trackerMtr);
    PARAMETER_INITIALIZE(trackerConv);
    PARAMETER_INITIALIZE(statsROIProcess);

    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        = 0x85b223c1b8113a07;
        trackerMtr.Load(localParams);
        localParams.NameHash        = 0x8e9f0b9a321a96ab;
        trackerConv.Load(localParams);
        localParams.NameHash        = 0xfeb77596c2a9d312;
        statsROIProcess.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 AECTrackerType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        AECTrackerType* arrayPtr = (AECTrackerType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load statsROIProcessStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECTrackerType::statsROIProcessStruct::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(statsROIProcessEnable);
    PARAMETER_INITIALIZE(statsROIPriority);
    PARAMETER_INITIALIZE(statsROIStable);

    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 = 0xd4eb72a7c78dcc38;
        entry->ReadSimpleTypeFixedArray(&statsROIProcessEnable, 1, localParams);
        localParams.UseParent       = false;
        localParams.UseParentOffset = true;
        localParams.NameHash        = 0xee06512b8debcff4;
        statsROIPriority.Load(localParams);
        localParams.NameHash        = 0xa5ed9124065b4999;
        statsROIStable.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 AECTrackerType::statsROIProcessStruct::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        statsROIProcessStruct* arrayPtr = (statsROIProcessStruct*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload TrackerMeteringType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void TrackerMeteringType::Unload(ParameterFileSymbolTable* const __table)
{
    luxTrackerLumaTarget.Unload(__table);
    trackerLumaWeightLuxIndexTrigger.Unload(__table);
    trackerSizeWeightLuxIndexTrigger.Unload(__table);
    ParameterFileSymbolTable::ReleaseObject(__table, ROIHistAdjZone);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload TrackerMeteringType_trackerLumaWeightLuxIndexTriggerStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void TrackerMeteringType::trackerLumaWeightLuxIndexTriggerStruct::Unload(ParameterFileSymbolTable* const __table)
{
    LuxTrackerLumaWeight.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload TrackerMeteringType_trackerSizeWeightLuxIndexTriggerStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void TrackerMeteringType::trackerSizeWeightLuxIndexTriggerStruct::Unload(ParameterFileSymbolTable* const __table)
{
    LuxTrackerSizeWeight.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload AECTrackerType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECTrackerType::Unload(ParameterFileSymbolTable* const __table)
{
    parameter_version.Unload(__table);
    trackerMtr.Unload(__table);
    statsROIProcess.Unload(__table);
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload statsROIProcessStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECTrackerType::statsROIProcessStruct::Unload(ParameterFileSymbolTable* const __table)
{
    statsROIPriority.Unload(__table);
    statsROIStable.Unload(__table);
}

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

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

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

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

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

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

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

AECTRACKER_NAMESPACE_END
