Defines | Functions
Configuration.cpp File Reference
#include <threemxl/platform/io/configuration/Configuration.h>
#include <muParser.h>
#include <stdlib.h>
Include dependency graph for Configuration.cpp:

Go to the source code of this file.

Defines

#define CCONFIGSECTION_GET_MACRO(TYPE, ASSIGNMENT_STATEMENT)
#define CCONFIGSECTION_GET_PRESET_MACRO(TYPE)

Functions

 CCONFIGSECTION_GET_MACRO (char,*value=(char) iConfigProp->toInt()) CCONFIGSECTION_GET_MACRO(unsigned char

Define Documentation

#define CCONFIGSECTION_GET_MACRO (   TYPE,
  ASSIGNMENT_STATEMENT 
)
Value:
bool CConfigSection::get(const std::string& property, TYPE *value) const        \
{                                                                                                                                                       \
        if (mIConfigSection)                                                                                                    \
        {                                                                                                                                               \
                IConfigProperty* iConfigProp = mIConfigSection->get(property);          \
                if (iConfigProp)                                                                                                        \
                {                                                                                                                                       \
                        ASSIGNMENT_STATEMENT;                                                                                   \
                        return true;                                                                                                    \
                }                                                                                                                                       \
                else                                                                                                                            \
                        return false;                                                                                                   \
        }                                                                                                                                               \
        else                                                                                                                                    \
                return false;                                                                                                           \
}

Definition at line 178 of file Configuration.cpp.

#define CCONFIGSECTION_GET_PRESET_MACRO (   TYPE)
Value:
bool CConfigSection::get(const std::string& property, TYPE *value, TYPE preset) const   \
{                                                                                                                                                                               \
        if (get(property, value))                                                                                                                       \
                return true;                                                                                                                                    \
        else                                                                                                                                                            \
        {                                                                                                                                                                       \
                *value = preset;                                                                                                                                \
                return false;                                                                                                                                   \
        }                                                                                                                                                                       \
}

Function Documentation

CCONFIGSECTION_GET_MACRO ( char  ,
value = (char)iConfigProp->toInt() 
)


threemxl
Author(s):
autogenerated on Thu Jun 6 2019 21:10:52