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

#include "sat_1_0_0.h"
#include "parametersetmanager.h"

SAT_1_0_0_NAMESPACE_BEGIN

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// SetValue/GetValue Functions
/// Gets or sets the requested value
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool chromatix_sat10_reserveType::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, "uw_optical_zoom_ratio") == 0)
    {
        ParameterUtils::DoubleToString((double)uw_optical_zoom_ratio, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "t_optical_zoom_ratio") == 0)
    {
        ParameterUtils::DoubleToString((double)t_optical_zoom_ratio, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "st_optical_zoom_ratio") == 0)
    {
        ParameterUtils::DoubleToString((double)st_optical_zoom_ratio, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_uw2w_range_tab") == 0)
    {
        __result = zoom_in_uw2w_range_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_w2t_range_tab") == 0)
    {
        __result = zoom_in_w2t_range_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_t2st_range_tab") == 0)
    {
        __result = zoom_in_t2st_range_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_st2t_range_tab") == 0)
    {
        __result = zoom_out_st2t_range_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_t2w_range_tab") == 0)
    {
        __result = zoom_out_t2w_range_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_w2uw_range_tab") == 0)
    {
        __result = zoom_out_w2uw_range_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_uw2w_beta1") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_in_uw2w_beta1, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_w2t_beta1") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_in_w2t_beta1, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_t2st_beta1") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_in_t2st_beta1, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_st2t_beta1") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_out_st2t_beta1, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_t2w_beta1") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_out_t2w_beta1, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_w2uw_beta1") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_out_w2uw_beta1, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_uw2w_alpha") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_in_uw2w_alpha, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_w2t_alpha") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_in_w2t_alpha, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_t2st_alpha") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_in_t2st_alpha, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_st2t_alpha") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_out_st2t_alpha, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_t2w_alpha") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_out_t2w_alpha, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_w2uw_alpha") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_out_w2uw_alpha, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_uw2w_beta2") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_in_uw2w_beta2, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_w2t_beta2") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_in_w2t_beta2, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_t2st_beta2") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_in_t2st_beta2, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_st2t_beta2") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_out_st2t_beta2, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_t2w_beta2") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_out_t2w_beta2, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_w2uw_beta2") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_out_w2uw_beta2, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_uw2w_time") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_in_uw2w_time, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_w2t_time") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_in_w2t_time, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_t2st_time") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_in_t2st_time, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_st2t_time") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_out_st2t_time, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_t2w_time") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_out_t2w_time, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_w2uw_time") == 0)
    {
        ParameterUtils::DoubleToString((double)zoom_out_w2uw_time, __value, __size);
        __result = true;
    }

    return __result;
}

bool chromatix_sat10_reserveType::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, "uw_optical_zoom_ratio") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            uw_optical_zoom_ratio = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "t_optical_zoom_ratio") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            t_optical_zoom_ratio = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "st_optical_zoom_ratio") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            st_optical_zoom_ratio = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_uw2w_range_tab") == 0)
    {
        __result = zoom_in_uw2w_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_w2t_range_tab") == 0)
    {
        __result = zoom_in_w2t_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_t2st_range_tab") == 0)
    {
        __result = zoom_in_t2st_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_st2t_range_tab") == 0)
    {
        __result = zoom_out_st2t_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_t2w_range_tab") == 0)
    {
        __result = zoom_out_t2w_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_w2uw_range_tab") == 0)
    {
        __result = zoom_out_w2uw_range_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_uw2w_beta1") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_in_uw2w_beta1 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_w2t_beta1") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_in_w2t_beta1 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_t2st_beta1") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_in_t2st_beta1 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_st2t_beta1") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_out_st2t_beta1 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_t2w_beta1") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_out_t2w_beta1 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_w2uw_beta1") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_out_w2uw_beta1 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_uw2w_alpha") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_in_uw2w_alpha = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_w2t_alpha") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_in_w2t_alpha = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_t2st_alpha") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_in_t2st_alpha = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_st2t_alpha") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_out_st2t_alpha = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_t2w_alpha") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_out_t2w_alpha = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_w2uw_alpha") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_out_w2uw_alpha = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_uw2w_beta2") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_in_uw2w_beta2 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_w2t_beta2") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_in_w2t_beta2 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_t2st_beta2") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_in_t2st_beta2 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_st2t_beta2") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_out_st2t_beta2 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_t2w_beta2") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_out_t2w_beta2 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_w2uw_beta2") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_out_w2uw_beta2 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_uw2w_time") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_in_uw2w_time = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_w2t_time") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_in_w2t_time = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_in_t2st_time") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_in_t2st_time = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_st2t_time") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_out_st2t_time = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_t2w_time") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_out_t2w_time = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "zoom_out_w2uw_time") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            zoom_out_w2uw_time = (float)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    return __result;
}

bool chromatix_sat10_reserveType::zoom_in_uw2w_range_tabStruct::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, "zoom_in_uw2w_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)zoom_in_uw2w_range[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < 2; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)zoom_in_uw2w_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool chromatix_sat10_reserveType::zoom_in_uw2w_range_tabStruct::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, "zoom_in_uw2w_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                zoom_in_uw2w_range[__index] = (float)dblValue; 
            }
        }
        else
        {
            SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __pos = 0;

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

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

                const double dblValue = ParameterUtils::StringToDouble(__valueStr, __result);
                if (__result)
                {
                    zoom_in_uw2w_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

bool chromatix_sat10_reserveType::zoom_in_w2t_range_tabStruct::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, "zoom_in_w2t_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)zoom_in_w2t_range[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < 2; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)zoom_in_w2t_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool chromatix_sat10_reserveType::zoom_in_w2t_range_tabStruct::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, "zoom_in_w2t_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                zoom_in_w2t_range[__index] = (float)dblValue; 
            }
        }
        else
        {
            SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __pos = 0;

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

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

                const double dblValue = ParameterUtils::StringToDouble(__valueStr, __result);
                if (__result)
                {
                    zoom_in_w2t_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

bool chromatix_sat10_reserveType::zoom_in_t2st_range_tabStruct::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, "zoom_in_t2st_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)zoom_in_t2st_range[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < 2; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)zoom_in_t2st_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool chromatix_sat10_reserveType::zoom_in_t2st_range_tabStruct::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, "zoom_in_t2st_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                zoom_in_t2st_range[__index] = (float)dblValue; 
            }
        }
        else
        {
            SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __pos = 0;

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

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

                const double dblValue = ParameterUtils::StringToDouble(__valueStr, __result);
                if (__result)
                {
                    zoom_in_t2st_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

bool chromatix_sat10_reserveType::zoom_out_st2t_range_tabStruct::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, "zoom_out_st2t_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)zoom_out_st2t_range[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < 2; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)zoom_out_st2t_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool chromatix_sat10_reserveType::zoom_out_st2t_range_tabStruct::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, "zoom_out_st2t_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                zoom_out_st2t_range[__index] = (float)dblValue; 
            }
        }
        else
        {
            SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __pos = 0;

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

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

                const double dblValue = ParameterUtils::StringToDouble(__valueStr, __result);
                if (__result)
                {
                    zoom_out_st2t_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

bool chromatix_sat10_reserveType::zoom_out_t2w_range_tabStruct::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, "zoom_out_t2w_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)zoom_out_t2w_range[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < 2; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)zoom_out_t2w_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool chromatix_sat10_reserveType::zoom_out_t2w_range_tabStruct::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, "zoom_out_t2w_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                zoom_out_t2w_range[__index] = (float)dblValue; 
            }
        }
        else
        {
            SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __pos = 0;

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

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

                const double dblValue = ParameterUtils::StringToDouble(__valueStr, __result);
                if (__result)
                {
                    zoom_out_t2w_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

bool chromatix_sat10_reserveType::zoom_out_w2uw_range_tabStruct::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, "zoom_out_w2uw_range") == 0)
    {
        if (__index < 2)
        {
            ParameterUtils::DoubleToString((double)zoom_out_w2uw_range[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < 2; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)zoom_out_w2uw_range[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool chromatix_sat10_reserveType::zoom_out_w2uw_range_tabStruct::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, "zoom_out_w2uw_range") == 0)
    {
        if (__index < 2)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                zoom_out_w2uw_range[__index] = (float)dblValue; 
            }
        }
        else
        {
            SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __pos = 0;

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

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

                const double dblValue = ParameterUtils::StringToDouble(__valueStr, __result);
                if (__result)
                {
                    zoom_out_w2uw_range[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

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

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

    return __result;
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
chromatix_sat10TypeClass::chromatix_sat10TypeClass(
    const CHAR* const name,
    ModuleData* const moduleData)
    : ParameterModule(name, MAJOR, MINOR, PATCH, moduleData)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(chromatix_sat10_reserve);
}

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

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

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

    PARAMETER_INITIALIZE(uw_optical_zoom_ratio);
    PARAMETER_INITIALIZE(t_optical_zoom_ratio);
    PARAMETER_INITIALIZE(st_optical_zoom_ratio);
    PARAMETER_INITIALIZE(zoom_in_uw2w_range_tab);
    PARAMETER_INITIALIZE(zoom_in_w2t_range_tab);
    PARAMETER_INITIALIZE(zoom_in_t2st_range_tab);
    PARAMETER_INITIALIZE(zoom_out_st2t_range_tab);
    PARAMETER_INITIALIZE(zoom_out_t2w_range_tab);
    PARAMETER_INITIALIZE(zoom_out_w2uw_range_tab);
    PARAMETER_INITIALIZE(zoom_in_uw2w_beta1);
    PARAMETER_INITIALIZE(zoom_in_w2t_beta1);
    PARAMETER_INITIALIZE(zoom_in_t2st_beta1);
    PARAMETER_INITIALIZE(zoom_out_st2t_beta1);
    PARAMETER_INITIALIZE(zoom_out_t2w_beta1);
    PARAMETER_INITIALIZE(zoom_out_w2uw_beta1);
    PARAMETER_INITIALIZE(zoom_in_uw2w_alpha);
    PARAMETER_INITIALIZE(zoom_in_w2t_alpha);
    PARAMETER_INITIALIZE(zoom_in_t2st_alpha);
    PARAMETER_INITIALIZE(zoom_out_st2t_alpha);
    PARAMETER_INITIALIZE(zoom_out_t2w_alpha);
    PARAMETER_INITIALIZE(zoom_out_w2uw_alpha);
    PARAMETER_INITIALIZE(zoom_in_uw2w_beta2);
    PARAMETER_INITIALIZE(zoom_in_w2t_beta2);
    PARAMETER_INITIALIZE(zoom_in_t2st_beta2);
    PARAMETER_INITIALIZE(zoom_out_st2t_beta2);
    PARAMETER_INITIALIZE(zoom_out_t2w_beta2);
    PARAMETER_INITIALIZE(zoom_out_w2uw_beta2);
    PARAMETER_INITIALIZE(zoom_in_uw2w_time);
    PARAMETER_INITIALIZE(zoom_in_w2t_time);
    PARAMETER_INITIALIZE(zoom_in_t2st_time);
    PARAMETER_INITIALIZE(zoom_out_st2t_time);
    PARAMETER_INITIALIZE(zoom_out_t2w_time);
    PARAMETER_INITIALIZE(zoom_out_w2uw_time);

    SYMBOL_TABLE_ENTRY_READ(entry, result, uw_optical_zoom_ratio, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, t_optical_zoom_ratio, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, st_optical_zoom_ratio, alignment)
    if (result)
    {
        result = zoom_in_uw2w_range_tab.Load(entry, alignment);
    }
    if (result)
    {
        result = zoom_in_w2t_range_tab.Load(entry, alignment);
    }
    if (result)
    {
        result = zoom_in_t2st_range_tab.Load(entry, alignment);
    }
    if (result)
    {
        result = zoom_out_st2t_range_tab.Load(entry, alignment);
    }
    if (result)
    {
        result = zoom_out_t2w_range_tab.Load(entry, alignment);
    }
    if (result)
    {
        result = zoom_out_w2uw_range_tab.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_in_uw2w_beta1, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_in_w2t_beta1, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_in_t2st_beta1, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_out_st2t_beta1, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_out_t2w_beta1, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_out_w2uw_beta1, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_in_uw2w_alpha, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_in_w2t_alpha, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_in_t2st_alpha, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_out_st2t_alpha, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_out_t2w_alpha, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_out_w2uw_alpha, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_in_uw2w_beta2, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_in_w2t_beta2, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_in_t2st_beta2, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_out_st2t_beta2, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_out_t2w_beta2, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_out_w2uw_beta2, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_in_uw2w_time, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_in_w2t_time, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_in_t2st_time, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_out_st2t_time, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_out_t2w_time, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, zoom_out_w2uw_time, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(zoom_in_uw2w_range);

    result = entry->ReadArray(zoom_in_uw2w_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(zoom_in_w2t_range);

    result = entry->ReadArray(zoom_in_w2t_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(zoom_in_t2st_range);

    result = entry->ReadArray(zoom_in_t2st_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(zoom_out_st2t_range);

    result = entry->ReadArray(zoom_out_st2t_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(zoom_out_t2w_range);

    result = entry->ReadArray(zoom_out_t2w_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(zoom_out_w2uw_range);

    result = entry->ReadArray(zoom_out_w2uw_range, 2, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(chromatix_sat10_reserve);

    result = module_version.Load(entry, alignment);
    if (result)
    {
        result = parameter_version.Load(entry, alignment);
    }
    if (result)
    {
        result = chromatix_sat10_reserve.Load(entry, alignment);
    }

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load module_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool chromatix_sat10Type::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 chromatix_sat10Type::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 chromatix_sat10Type
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatix_sat10Type::Unload(ParameterFileSymbolTable* const __table)
{
    parameter_version.Unload(__table);
}

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Create module, and return a new object
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
ParameterModule* chromatix_sat10TypeClass::Create(
    ModuleData*    moduleData,
    DefaultModule* const defModule) const
{
    chromatix_sat10TypeClass* 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 = (chromatix_sat10TypeClass*)module;
        }
        else
        {
            cls = PARAMETER_NEW chromatix_sat10TypeClass(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 chromatix_sat10TypeClass, binary version (%lld) does not match source version (%lld)\n",
            moduleData->Version.Value, Version.Value);
    }
    else
    {
        PARAMETER_LOG_ERROR(moduleData->SetManager, "Unable to create chromatix_sat10TypeClass, binary name (%s) does not match source name (%s)\n",
            moduleData->Type, Type);
    }

    return (ParameterModule*)cls;
}

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

    if (!Loaded)
    {
        BYTE const alignment = table->Alignment;
        chromatix_sat10TypeClass* 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, "chromatix_sat10TypeClass::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 chromatix_sat10TypeClass::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 chromatix_sat10TypeClass::Release()
{
    ParameterModule::Release();
}

SAT_1_0_0_NAMESPACE_END
