5 #if !defined(NX_KIT_API) 65 static bool isEnabled();
73 static void setOutput(std::ostream* output);
76 static const char* iniFilesDir();
85 static void setIniFilesDir(
const char* iniFilesDir);
95 const char* iniFile()
const;
96 const char* iniFilePath()
const;
102 #define NX_INI_FLAG(DEFAULT, PARAM, DESCRIPTION) \ 103 const bool PARAM = regBoolParam(&PARAM, DEFAULT, #PARAM, DESCRIPTION) 105 #define NX_INI_INT(DEFAULT, PARAM, DESCRIPTION) \ 106 const int PARAM = regIntParam(&PARAM, DEFAULT, #PARAM, DESCRIPTION) 108 #define NX_INI_STRING(DEFAULT, PARAM, DESCRIPTION) \ 109 const char* const PARAM = regStringParam(&PARAM, DEFAULT, #PARAM, DESCRIPTION) 111 #define NX_INI_FLOAT(DEFAULT, PARAM, DESCRIPTION) \ 112 const float PARAM = regFloatParam(&PARAM, DEFAULT, #PARAM, DESCRIPTION) 114 #define NX_INI_DOUBLE(DEFAULT, PARAM, DESCRIPTION) \ 115 const double PARAM = regDoubleParam(&PARAM, DEFAULT, #PARAM, DESCRIPTION) 118 bool regBoolParam(
const bool* pValue,
bool defaultValue,
119 const char* paramName,
const char* description);
121 int regIntParam(
const int* pValue,
int defaultValue,
122 const char* paramName,
const char* description);
124 const char* regStringParam(
const char*
const* pValue,
const char* defaultValue,
125 const char* paramName,
const char* description);
127 float regFloatParam(
const float* pValue,
float defaultValue,
128 const char* paramName,
const char* description);
130 double regDoubleParam(
const double* pValue,
double defaultValue,
131 const char* paramName,
const char* description);
Definition: ini_config.h:57
Definition: ini_config.cpp:404