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

#include "eis_1_0_0.h"
#include "parametersetmanager.h"

EIS_1_0_0_NAMESPACE_BEGIN

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// SetValue/GetValue Functions
/// Gets or sets the requested value
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool chromatix_eis10_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, "general") == 0)
    {
        __result = general.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "timing") == 0)
    {
        __result = timing.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

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

    return __result;
}

bool chromatix_eis10_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);

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

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

    return __result;
}

bool chromatix_eis10_reserveType::generalStruct::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, "virtual_margin") == 0)
    {
        ParameterUtils::DoubleToString((double)virtual_margin, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "focal_length") == 0)
    {
        ParameterUtils::DoubleToString((double)focal_length, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "gyro_frequency") == 0)
    {
        ParameterUtils::DoubleToString((double)gyro_frequency, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "gyro_noise_floor") == 0)
    {
        ParameterUtils::DoubleToString((double)gyro_noise_floor, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "gyro_pixel_scale") == 0)
    {
        ParameterUtils::DoubleToString((double)gyro_pixel_scale, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "res_param_1") == 0)
    {
        ParameterUtils::DoubleToString((double)res_param_1, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "res_param_2") == 0)
    {
        ParameterUtils::DoubleToString((double)res_param_2, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "res_param_3") == 0)
    {
        ParameterUtils::DoubleToString((double)res_param_3, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "res_param_4") == 0)
    {
        ParameterUtils::DoubleToString((double)res_param_4, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "res_param_5") == 0)
    {
        ParameterUtils::DoubleToString((double)res_param_5, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "res_param_6") == 0)
    {
        ParameterUtils::DoubleToString((double)res_param_6, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "res_param_7") == 0)
    {
        ParameterUtils::DoubleToString((double)res_param_7, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "res_param_8") == 0)
    {
        ParameterUtils::DoubleToString((double)res_param_8, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "res_param_9") == 0)
    {
        ParameterUtils::DoubleToString((double)res_param_9, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "res_param_10") == 0)
    {
        ParameterUtils::DoubleToString((double)res_param_10, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "res_lut_param_1_tab") == 0)
    {
        __result = res_lut_param_1_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "res_lut_param_2_tab") == 0)
    {
        __result = res_lut_param_2_tab.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool chromatix_eis10_reserveType::generalStruct::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, "virtual_margin") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            virtual_margin = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "focal_length") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            focal_length = (UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "gyro_frequency") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            gyro_frequency = (UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "gyro_noise_floor") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            gyro_noise_floor = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "gyro_pixel_scale") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            gyro_pixel_scale = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "res_param_1") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            res_param_1 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "res_param_2") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            res_param_2 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "res_param_3") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            res_param_3 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "res_param_4") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            res_param_4 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "res_param_5") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            res_param_5 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "res_param_6") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            res_param_6 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "res_param_7") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            res_param_7 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "res_param_8") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            res_param_8 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "res_param_9") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            res_param_9 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "res_param_10") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            res_param_10 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "res_lut_param_1_tab") == 0)
    {
        __result = res_lut_param_1_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "res_lut_param_2_tab") == 0)
    {
        __result = res_lut_param_2_tab.SetValue(&__path[__pos], __value);
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    return __result;
}

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

    return __result;
}

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

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

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

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

    return __result;
}

bool chromatix_eis10_reserveType::generalStruct::res_lut_param_1_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);

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

    return __result;
}

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

    return __result;
}

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

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

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

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

    return __result;
}

bool chromatix_eis10_reserveType::generalStruct::res_lut_param_2_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);

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

    return __result;
}

bool chromatix_eis10_reserveType::timingStruct::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, "s3d_offset_1") == 0)
    {
        ParameterUtils::DoubleToString((double)s3d_offset_1, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "s3d_offset_2") == 0)
    {
        ParameterUtils::DoubleToString((double)s3d_offset_2, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "s3d_offset_3") == 0)
    {
        ParameterUtils::DoubleToString((double)s3d_offset_3, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "s3d_offset_4") == 0)
    {
        ParameterUtils::DoubleToString((double)s3d_offset_4, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "s3d_threshold_1") == 0)
    {
        ParameterUtils::DoubleToString((double)s3d_threshold_1, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "s3d_threshold_2") == 0)
    {
        ParameterUtils::DoubleToString((double)s3d_threshold_2, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "s3d_threshold_3") == 0)
    {
        ParameterUtils::DoubleToString((double)s3d_threshold_3, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "s3d_threshold_4_ext") == 0)
    {
        ParameterUtils::DoubleToString((double)s3d_threshold_4_ext, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "rs_offset_1") == 0)
    {
        ParameterUtils::DoubleToString((double)rs_offset_1, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "rs_offset_2") == 0)
    {
        ParameterUtils::DoubleToString((double)rs_offset_2, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "rs_offset_3") == 0)
    {
        ParameterUtils::DoubleToString((double)rs_offset_3, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "rs_offset_4") == 0)
    {
        ParameterUtils::DoubleToString((double)rs_offset_4, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "rs_threshold_1") == 0)
    {
        ParameterUtils::DoubleToString((double)rs_threshold_1, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "rs_threshold_2") == 0)
    {
        ParameterUtils::DoubleToString((double)rs_threshold_2, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "rs_threshold_3") == 0)
    {
        ParameterUtils::DoubleToString((double)rs_threshold_3, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "rs_threshold_4_ext") == 0)
    {
        ParameterUtils::DoubleToString((double)rs_threshold_4_ext, __value, __size);
        __result = true;
    }

    return __result;
}

bool chromatix_eis10_reserveType::timingStruct::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, "s3d_offset_1") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            s3d_offset_1 = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "s3d_offset_2") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            s3d_offset_2 = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "s3d_offset_3") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            s3d_offset_3 = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "s3d_offset_4") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            s3d_offset_4 = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "s3d_threshold_1") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            s3d_threshold_1 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "s3d_threshold_2") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            s3d_threshold_2 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "s3d_threshold_3") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            s3d_threshold_3 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "s3d_threshold_4_ext") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            s3d_threshold_4_ext = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "rs_offset_1") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            rs_offset_1 = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "rs_offset_2") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            rs_offset_2 = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "rs_offset_3") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            rs_offset_3 = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "rs_offset_4") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            rs_offset_4 = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "rs_threshold_1") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            rs_threshold_1 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "rs_threshold_2") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            rs_threshold_2 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "rs_threshold_3") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            rs_threshold_3 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "rs_threshold_4_ext") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            rs_threshold_4_ext = (float)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    return __result;
}

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

    return __result;
}

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

    return __result;
}

bool chromatix_eis10Type::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_eis10_reserve
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("chromatix_eis10_reserve", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "chromatix_eis10_reserve") == 0)
    {
        __result = chromatix_eis10_reserve.GetInfo(&__path[__pos], __info);
    }

    return __result;
}

bool chromatix_eis10Type::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_eis10Type::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_eis10Type::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_eis10Type::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_eis10Type::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_eis10Type::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_eis10TypeClass::chromatix_eis10TypeClass(
    const CHAR* const name)
    : ParameterModule(name, MAJOR, MINOR, PATCH, nullptr)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(chromatix_eis10_reserve);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
chromatix_eis10TypeClass::chromatix_eis10TypeClass(
    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_eis10_reserve);
}

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

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

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

    PARAMETER_INITIALIZE(general);
    PARAMETER_INITIALIZE(timing);

    result = general.Load(entry, alignment);
    if (result)
    {
        result = timing.Load(entry, alignment);
    }

    return result;
}

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

    PARAMETER_INITIALIZE(virtual_margin);
    PARAMETER_INITIALIZE(focal_length);
    PARAMETER_INITIALIZE(gyro_frequency);
    PARAMETER_INITIALIZE(gyro_noise_floor);
    PARAMETER_INITIALIZE(gyro_pixel_scale);
    PARAMETER_INITIALIZE(res_param_1);
    PARAMETER_INITIALIZE(res_param_2);
    PARAMETER_INITIALIZE(res_param_3);
    PARAMETER_INITIALIZE(res_param_4);
    PARAMETER_INITIALIZE(res_param_5);
    PARAMETER_INITIALIZE(res_param_6);
    PARAMETER_INITIALIZE(res_param_7);
    PARAMETER_INITIALIZE(res_param_8);
    PARAMETER_INITIALIZE(res_param_9);
    PARAMETER_INITIALIZE(res_param_10);
    PARAMETER_INITIALIZE(res_lut_param_1_tab);
    PARAMETER_INITIALIZE(res_lut_param_2_tab);

    SYMBOL_TABLE_ENTRY_READ(entry, result, virtual_margin, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, focal_length, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, gyro_frequency, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, gyro_noise_floor, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, gyro_pixel_scale, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, res_param_1, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, res_param_2, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, res_param_3, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, res_param_4, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, res_param_5, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, res_param_6, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, res_param_7, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, res_param_8, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, res_param_9, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, res_param_10, alignment)
    if (result)
    {
        result = res_lut_param_1_tab.Load(entry, alignment);
    }
    if (result)
    {
        result = res_lut_param_2_tab.Load(entry, alignment);
    }

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load chromatix_eis10_reserveType_generalStruct_res_lut_param_1_tabStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool chromatix_eis10_reserveType::generalStruct::res_lut_param_1_tabStruct::Load(
    ParameterFileSymbolTableEntry* const entry,
    BYTE const alignment)
{
    bool result = true;

    PARAMETER_INITIALIZE(res_lut_param_1);

    result = entry->ReadArray(res_lut_param_1, 32, alignment);

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load chromatix_eis10_reserveType_generalStruct_res_lut_param_2_tabStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool chromatix_eis10_reserveType::generalStruct::res_lut_param_2_tabStruct::Load(
    ParameterFileSymbolTableEntry* const entry,
    BYTE const alignment)
{
    bool result = true;

    PARAMETER_INITIALIZE(res_lut_param_2);

    result = entry->ReadArray(res_lut_param_2, 32, alignment);

    return result;
}

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

    PARAMETER_INITIALIZE(s3d_offset_1);
    PARAMETER_INITIALIZE(s3d_offset_2);
    PARAMETER_INITIALIZE(s3d_offset_3);
    PARAMETER_INITIALIZE(s3d_offset_4);
    PARAMETER_INITIALIZE(s3d_threshold_1);
    PARAMETER_INITIALIZE(s3d_threshold_2);
    PARAMETER_INITIALIZE(s3d_threshold_3);
    PARAMETER_INITIALIZE(s3d_threshold_4_ext);
    PARAMETER_INITIALIZE(rs_offset_1);
    PARAMETER_INITIALIZE(rs_offset_2);
    PARAMETER_INITIALIZE(rs_offset_3);
    PARAMETER_INITIALIZE(rs_offset_4);
    PARAMETER_INITIALIZE(rs_threshold_1);
    PARAMETER_INITIALIZE(rs_threshold_2);
    PARAMETER_INITIALIZE(rs_threshold_3);
    PARAMETER_INITIALIZE(rs_threshold_4_ext);

    SYMBOL_TABLE_ENTRY_READ(entry, result, s3d_offset_1, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, s3d_offset_2, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, s3d_offset_3, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, s3d_offset_4, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, s3d_threshold_1, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, s3d_threshold_2, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, s3d_threshold_3, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, s3d_threshold_4_ext, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, rs_offset_1, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, rs_offset_2, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, rs_offset_3, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, rs_offset_4, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, rs_threshold_1, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, rs_threshold_2, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, rs_threshold_3, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, rs_threshold_4_ext, alignment)

    return result;
}

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

    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(chromatix_eis10_reserve);

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

    return result;
}

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

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Create module, and return a new object
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
ParameterModule* chromatix_eis10TypeClass::Create(
    ModuleData*    moduleData,
    DefaultModule* const defModule) const
{
    chromatix_eis10TypeClass* 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_eis10TypeClass*)module;
        }
        else
        {
            cls = PARAMETER_NEW chromatix_eis10TypeClass(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_eis10TypeClass, 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_eis10TypeClass, 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_eis10TypeClass::LoadModule(
    ParameterFileSymbolTable* const table)
{
    bool result = true;

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

EIS_1_0_0_NAMESPACE_END
