////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// THIS IS AUTO-GENERATED CODE.  PLEASE DO NOT EDIT (File bug reports against tools).
///
/// Auto-generated by: Parameter Parser V5.5.1 (2411131018)
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

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

#include "iwarp_1_0_0.h"
#include "parametersetmanager.h"

IWARP_1_0_0_NAMESPACE_BEGIN

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// SetValue/GetValue Functions
/// Gets or sets the requested value
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool LTMTuningDataType::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

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

    if (PARAMETER_STRCMP(__name, "auto_ltm_enable") == 0)
    {
        ParameterUtils::DoubleToString((double)auto_ltm_enable, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "halo_score_target") == 0)
    {
        ParameterUtils::DoubleToString((double)halo_score_target, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "brightness_target") == 0)
    {
        ParameterUtils::DoubleToString((double)brightness_target, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "contrast_target") == 0)
    {
        ParameterUtils::DoubleToString((double)contrast_target, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "ltm_gain_limit") == 0)
    {
        ParameterUtils::DoubleToString((double)ltm_gain_limit, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "low_code_tone_end") == 0)
    {
        ParameterUtils::DoubleToString((double)low_code_tone_end, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "mid_tone_start") == 0)
    {
        ParameterUtils::DoubleToString((double)mid_tone_start, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "mid_tone_end") == 0)
    {
        ParameterUtils::DoubleToString((double)mid_tone_end, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "smear_prev_low_limit") == 0)
    {
        ParameterUtils::DoubleToString((double)smear_prev_low_limit, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "smear_prev_high_limit") == 0)
    {
        ParameterUtils::DoubleToString((double)smear_prev_high_limit, __value, __size);
        __result = true;
    }

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "auto_ltm_enable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            auto_ltm_enable = (UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "halo_score_target") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            halo_score_target = (UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "brightness_target") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            brightness_target = (UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "contrast_target") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            contrast_target = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "ltm_gain_limit") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            ltm_gain_limit = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "low_code_tone_end") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            low_code_tone_end = (UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "mid_tone_start") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            mid_tone_start = (UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "mid_tone_end") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            mid_tone_end = (UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "smear_prev_low_limit") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            smear_prev_low_limit = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "smear_prev_high_limit") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            smear_prev_high_limit = (float)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

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

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

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

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "autoltm2_en") == 0)
    {
        ParameterUtils::DoubleToString((double)autoltm2_en, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "gsn_luma_target") == 0)
    {
        ParameterUtils::DoubleToString((double)gsn_luma_target, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "gsn_sigma") == 0)
    {
        ParameterUtils::DoubleToString((double)gsn_sigma, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "k2_8bit_pre_weight") == 0)
    {
        ParameterUtils::DoubleToString((double)k2_8bit_pre_weight, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "flat_hist_en") == 0)
    {
        ParameterUtils::DoubleToString((double)flat_hist_en, __value, __size, 0);
        __result = true;
    }

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "autoltm2_en") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            autoltm2_en = (UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "gsn_luma_target") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            gsn_luma_target = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "gsn_sigma") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            gsn_sigma = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "k2_8bit_pre_weight") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            k2_8bit_pre_weight = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "flat_hist_en") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            flat_hist_en = (UINT32)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

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

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "gpu_ltm_en") == 0)
    {
        ParameterUtils::DoubleToString((double)gpu_ltm_en, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "ltm_max_gain") == 0)
    {
        ParameterUtils::DoubleToString((double)ltm_max_gain, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "ltm_comp_target") == 0)
    {
        ParameterUtils::DoubleToString((double)ltm_comp_target, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "ltm_inverse_tone_perc") == 0)
    {
        ParameterUtils::DoubleToString((double)ltm_inverse_tone_perc, __value, __size);
        __result = true;
    }

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "gpu_ltm_en") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            gpu_ltm_en = (UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "ltm_max_gain") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            ltm_max_gain = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "ltm_comp_target") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            ltm_comp_target = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "ltm_inverse_tone_perc") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            ltm_inverse_tone_perc = (float)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "adc_bit_depth") == 0)
    {
        ParameterUtils::DoubleToString((double)adc_bit_depth, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "tm_out_bit_depth") == 0)
    {
        ParameterUtils::DoubleToString((double)tm_out_bit_depth, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "bayer_gtm_gamma") == 0)
    {
        ParameterUtils::DoubleToString((double)bayer_gtm_gamma, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "hdr_dark_n1") == 0)
    {
        ParameterUtils::DoubleToString((double)hdr_dark_n1, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "hdr_dark_n2_minus_n1_normalization_factor") == 0)
    {
        ParameterUtils::DoubleToString((double)hdr_dark_n2_minus_n1_normalization_factor, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "hdr_max_weight") == 0)
    {
        ParameterUtils::DoubleToString((double)hdr_max_weight, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "tm_gain") == 0)
    {
        ParameterUtils::DoubleToString((double)tm_gain, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "hdr_ratio") == 0)
    {
        ParameterUtils::DoubleToString((double)hdr_ratio, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "perf_hint") == 0)
    {
        ParameterUtils::DoubleToString((double)perf_hint, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "num_gpu_passes") == 0)
    {
        ParameterUtils::DoubleToString((double)num_gpu_passes, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "num_exposure") == 0)
    {
        ParameterUtils::DoubleToString((double)num_exposure, __value, __size, 0);
        __result = true;
    }

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "adc_bit_depth") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            adc_bit_depth = (UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "tm_out_bit_depth") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            tm_out_bit_depth = (UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "bayer_gtm_gamma") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            bayer_gtm_gamma = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "hdr_dark_n1") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            hdr_dark_n1 = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "hdr_dark_n2_minus_n1_normalization_factor") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            hdr_dark_n2_minus_n1_normalization_factor = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "hdr_max_weight") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            hdr_max_weight = (UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "tm_gain") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            tm_gain = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "hdr_ratio") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            hdr_ratio = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "perf_hint") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            perf_hint = (UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "num_gpu_passes") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            num_gpu_passes = (UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "num_exposure") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            num_exposure = (UINT32)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "gtm") == 0)
    {
        ParameterUtils::DoubleToString((double)gtm, __value, __size);
        __result = true;
    }

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "gtm") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            gtm = (float)dblValue; 
        }
    }

    return __result;
}

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

    return __result;
}

bool iwarp10Type::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, "enable_section") == 0)
    {
        __result = enable_section.GetValue(&__path[__pos], __value, __size);
    }
    else 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, "AECTuningData") == 0)
    {
        __result = AECTuningData.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "BayerProcTuningData") == 0)
    {
        __result = BayerProcTuningData.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "LTMData") == 0)
    {
        __result = LTMData.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "AutoLTM2Data") == 0)
    {
        __result = AutoLTM2Data.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "LTMTuningData") == 0)
    {
        __result = LTMTuningData.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool iwarp10Type::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, "enable_section") == 0)
    {
        __result = enable_section.SetValue(&__path[__pos], __value);
    }
    else 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, "AECTuningData") == 0)
    {
        __result = AECTuningData.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "BayerProcTuningData") == 0)
    {
        __result = BayerProcTuningData.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "LTMData") == 0)
    {
        __result = LTMData.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "AutoLTM2Data") == 0)
    {
        __result = AutoLTM2Data.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "LTMTuningData") == 0)
    {
        __result = LTMTuningData.SetValue(&__path[__pos], __value);
    }

    return __result;
}

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

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

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

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

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

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

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

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

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "iwarp_enable") == 0)
    {
        ParameterUtils::DoubleToString((double)iwarp_enable, __value, __size, 0);
        __result = true;
    }

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "iwarp_enable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            iwarp_enable = (globalelements::enable_flag_type)dblValue; 
        }
    }

    return __result;
}

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

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

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

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "major_revision") == 0)
    {
        ParameterUtils::DoubleToString((double)major_revision, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "minor_revision") == 0)
    {
        ParameterUtils::DoubleToString((double)minor_revision, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "incr_revision") == 0)
    {
        ParameterUtils::DoubleToString((double)incr_revision, __value, __size, 0);
        __result = true;
    }

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "major_revision") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            major_revision = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "minor_revision") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minor_revision = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "incr_revision") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            incr_revision = (INT32)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

    return __result;
}

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

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

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

    return __result;
}

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

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

    if (PARAMETER_STRCMP(__name, "revision") == 0)
    {
        // Cannot modify strings, risk of memory leaks or corruption
    }

    return __result;
}

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

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

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

    return __result;
}


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Default Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
iwarp10TypeClass::iwarp10TypeClass(
    const CHAR* const name)
    : ParameterModule(name, MAJOR, MINOR, PATCH, nullptr)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(enable_section);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(AECTuningData);
    PARAMETER_INITIALIZE(BayerProcTuningData);
    PARAMETER_INITIALIZE(LTMData);
    PARAMETER_INITIALIZE(AutoLTM2Data);
    PARAMETER_INITIALIZE(LTMTuningData);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
iwarp10TypeClass::iwarp10TypeClass(
    const CHAR* const name,
    ModuleData* const moduleData)
    : ParameterModule(name, MAJOR, MINOR, PATCH, moduleData)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(enable_section);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(AECTuningData);
    PARAMETER_INITIALIZE(BayerProcTuningData);
    PARAMETER_INITIALIZE(LTMData);
    PARAMETER_INITIALIZE(AutoLTM2Data);
    PARAMETER_INITIALIZE(LTMTuningData);
}

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

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

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

    PARAMETER_INITIALIZE(auto_ltm_enable);
    PARAMETER_INITIALIZE(halo_score_target);
    PARAMETER_INITIALIZE(brightness_target);
    PARAMETER_INITIALIZE(contrast_target);
    PARAMETER_INITIALIZE(ltm_gain_limit);
    PARAMETER_INITIALIZE(low_code_tone_end);
    PARAMETER_INITIALIZE(mid_tone_start);
    PARAMETER_INITIALIZE(mid_tone_end);
    PARAMETER_INITIALIZE(smear_prev_low_limit);
    PARAMETER_INITIALIZE(smear_prev_high_limit);

    SYMBOL_TABLE_ENTRY_READ(entry, result, auto_ltm_enable, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, halo_score_target, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, brightness_target, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, contrast_target, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, ltm_gain_limit, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, low_code_tone_end, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, mid_tone_start, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, mid_tone_end, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, smear_prev_low_limit, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, smear_prev_high_limit, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(autoltm2_en);
    PARAMETER_INITIALIZE(gsn_luma_target);
    PARAMETER_INITIALIZE(gsn_sigma);
    PARAMETER_INITIALIZE(k2_8bit_pre_weight);
    PARAMETER_INITIALIZE(flat_hist_en);

    SYMBOL_TABLE_ENTRY_READ(entry, result, autoltm2_en, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, gsn_luma_target, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, gsn_sigma, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, k2_8bit_pre_weight, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, flat_hist_en, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(gpu_ltm_en);
    PARAMETER_INITIALIZE(ltm_max_gain);
    PARAMETER_INITIALIZE(ltm_comp_target);
    PARAMETER_INITIALIZE(ltm_inverse_tone_perc);

    SYMBOL_TABLE_ENTRY_READ(entry, result, gpu_ltm_en, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, ltm_max_gain, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, ltm_comp_target, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, ltm_inverse_tone_perc, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(adc_bit_depth);
    PARAMETER_INITIALIZE(tm_out_bit_depth);
    PARAMETER_INITIALIZE(bayer_gtm_gamma);
    PARAMETER_INITIALIZE(hdr_dark_n1);
    PARAMETER_INITIALIZE(hdr_dark_n2_minus_n1_normalization_factor);
    PARAMETER_INITIALIZE(hdr_max_weight);
    PARAMETER_INITIALIZE(tm_gain);
    PARAMETER_INITIALIZE(hdr_ratio);
    PARAMETER_INITIALIZE(perf_hint);
    PARAMETER_INITIALIZE(num_gpu_passes);
    PARAMETER_INITIALIZE(num_exposure);

    SYMBOL_TABLE_ENTRY_READ(entry, result, adc_bit_depth, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, tm_out_bit_depth, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, bayer_gtm_gamma, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, hdr_dark_n1, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, hdr_dark_n2_minus_n1_normalization_factor, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, hdr_max_weight, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, tm_gain, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, hdr_ratio, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, perf_hint, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, num_gpu_passes, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, num_exposure, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(gtm);

    SYMBOL_TABLE_ENTRY_READ(entry, result, gtm, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(zoneTrigger);
    PARAMETER_INITIALIZE(zoneData);

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

    return result;
}

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

    PARAMETER_INITIALIZE(ExpRatioZone);


    // Reading Array ExpRatioZone from symbol table
    // Do not check result value here because the count value needs to be initialized in this block
    {
        ExpRatioZoneCount = 0;
        SYMBOL_TABLE_ENTRY_READ(entry, result, ExpRatioZoneCount, alignment)
        constexpr const CHAR* const file {__FILE__};
        constexpr INT32 line {LINE_CONST};
        ParameterFileSymbolTableEntry  pointerEntryCls;
        ParameterFileSymbolTableEntry* const pointerEntry = &pointerEntryCls;
        if (result)
        {
            result = entry->Table->ReadPointerEntry(pointerEntryCls, entry, alignment);
        }

        if (result)
        {
            ExpRatioZoneID = pointerEntry->ID;
            DupObjInfo* ExpRatioZoneDupInfo = pointerEntry->GetDupObject(ExpRatioZoneCount, file, line);
            if (ExpRatioZoneDupInfo != nullptr && ExpRatioZoneDupInfo->Object != nullptr)
            {
                ExpRatioZone = (ExpRatioZoneType*)ExpRatioZoneDupInfo->Object;
                if (ExpRatioZone == nullptr)
                {
                    if (ExpRatioZoneDupInfo->File != nullptr)
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "ExpRatioZone duplicate found but object is nullptr: %s:%d, RefCount: %d\n",
                            ExpRatioZoneDupInfo->File, ExpRatioZoneDupInfo->Line, ExpRatioZoneDupInfo->RefCount);
                    }
                    else
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "ExpRatioZone duplicate found but Object is nullptr: <nullptr file ptr>:%d, RefCount: %d\n",
                            ExpRatioZoneDupInfo->Line, ExpRatioZoneDupInfo->RefCount);
                    }
                }
            }

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

    return result;
}

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

    PARAMETER_INITIALIZE(lut_entries);

    result = lut_entries.Load(entry, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(enable_section);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(AECTuningData);
    PARAMETER_INITIALIZE(BayerProcTuningData);
    PARAMETER_INITIALIZE(LTMData);
    PARAMETER_INITIALIZE(AutoLTM2Data);
    PARAMETER_INITIALIZE(LTMTuningData);

    result = enable_section.Load(entry, alignment);
    if (result)
    {
        result = module_version.Load(entry, alignment);
    }
    if (result)
    {
        result = parameter_version.Load(entry, alignment);
    }
    if (result)
    {
        result = AECTuningData.Load(entry, alignment);
    }
    if (result)
    {
        result = BayerProcTuningData.Load(entry, alignment);
    }
    if (result)
    {
        result = LTMData.Load(entry, alignment);
    }
    if (result)
    {
        result = AutoLTM2Data.Load(entry, alignment);
    }
    if (result)
    {
        result = LTMTuningData.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(iwarp_enable);

    SYMBOL_TABLE_ENTRY_READ(entry, result, iwarp_enable, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(major_revision);
    PARAMETER_INITIALIZE(minor_revision);
    PARAMETER_INITIALIZE(incr_revision);

    SYMBOL_TABLE_ENTRY_READ(entry, result, major_revision, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, minor_revision, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, incr_revision, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(revision);


    // Reading String revision from symbol table
    {
        UINT32 count = 0;
        SYMBOL_TABLE_ENTRY_READ(entry, result, count, alignment)
        ParameterFileSymbolTableEntry stringPointerEntryCls;
        ParameterFileSymbolTableEntry* const stringPointerEntry = &stringPointerEntryCls;
        if (result)
        {
            result = entry->Table->ReadPointerEntry(stringPointerEntryCls, entry, alignment);
        }
        SYMBOL_TABLE_ENTRY_READ_STRING(stringPointerEntry, result, revision, count, alignment)
    }

    return result;
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload AECTuningDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECTuningDataType::Unload(ParameterFileSymbolTable* const __table)
{
    lut_entries.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload iwarp10Type
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void iwarp10Type::Unload(ParameterFileSymbolTable* const __table)
{
    parameter_version.Unload(__table);
    AECTuningData.Unload(__table);
}

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

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

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

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

    if (PARAMETER_STRCMP(Type, moduleData->Type) == 0 && Version.Value == moduleData->Version.Value)
    {
        const UINT32 id = moduleData->DuplicateID > 0 ? moduleData->DuplicateID : moduleData->ID;

        ParameterModule* const module = defModule->Find(id);
        if (module != nullptr)
        {
            cls = (iwarp10TypeClass*)module;
        }
        else
        {
            cls = PARAMETER_NEW iwarp10TypeClass(GetName(moduleData->Type), moduleData);
            cls->SymbolTableID = id;
            defModule->AddModule((ParameterModule*)cls);
        }
    }
    else if (Version.Value != moduleData->Version.Value)
    {
        PARAMETER_LOG_ERROR(moduleData->SetManager, "Unable to create iwarp10TypeClass, binary version (%lld) does not match source version (%lld)\n",
            moduleData->Version.Value, Version.Value);
    }
    else
    {
        PARAMETER_LOG_ERROR(moduleData->SetManager, "Unable to create iwarp10TypeClass, binary name (%s) does not match source name (%s)\n",
            moduleData->Type, Type);
    }

    return (ParameterModule*)cls;
}

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

    if (!Loaded)
    {
        BYTE const alignment = table->Alignment;
        iwarp10TypeClass* const cls = this;

        ParameterFileSymbolTableEntry  entryObj;
        ParameterFileSymbolTableEntry* const entry = &entryObj;
        // With EzTune enabled, the unused upper byte of SymbolTableID value can change, so clear it
        result = table->Find(entryObj, SymbolTableID & 0x00ffffff);

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

        if (result)
        {
            result = cls->Load(entry, alignment);
        }
        Modified++;
        Loaded = true;
    }

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

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload module data
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void iwarp10TypeClass::UnloadModule()
{
    if (Loaded)
    {
        if (Data != nullptr && Data->SymbolTable != nullptr)
        {
            Unload(Data->SymbolTable);
        }
        else
        {
            PARAMETER_LOG_ERROR(Data != nullptr ? Data->SetManager : nullptr, "UnloadModule %s called with nullptr "
                "Data->SymbolTable object\n", Name);
            Unload(nullptr);
        }
        Loaded = false;
    }
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// /// Release the ParameterModule object
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void iwarp10TypeClass::Release()
{
    ParameterModule::Release();
}

IWARP_1_0_0_NAMESPACE_END
