6 #if !defined(NX_KIT_API) 65 static bool isEnabled();
73 static void setOutput(std::ostream* output);
76 static const char* iniFilesDir();
84 static void setIniFilesDir(
const char* iniFilesDir);
94 const char* iniFile()
const;
95 const char* iniFilePath()
const;
101 #define NX_INI_FLAG(DEFAULT, PARAM, DESCRIPTION) \ 102 const bool PARAM = regBoolParam(&PARAM, DEFAULT, #PARAM, DESCRIPTION) 104 #define NX_INI_INT(DEFAULT, PARAM, DESCRIPTION) \ 105 const int PARAM = regIntParam(&PARAM, DEFAULT, #PARAM, DESCRIPTION) 107 #define NX_INI_STRING(DEFAULT, PARAM, DESCRIPTION) \ 108 const char* const PARAM = regStringParam(&PARAM, DEFAULT, #PARAM, DESCRIPTION) 110 #define NX_INI_FLOAT(DEFAULT, PARAM, DESCRIPTION) \ 111 const float PARAM = regFloatParam(&PARAM, DEFAULT, #PARAM, DESCRIPTION) 113 #define NX_INI_DOUBLE(DEFAULT, PARAM, DESCRIPTION) \ 114 const double PARAM = regDoubleParam(&PARAM, DEFAULT, #PARAM, DESCRIPTION) 117 bool regBoolParam(
const bool* pValue,
bool defaultValue,
118 const char* paramName,
const char* description);
120 int regIntParam(
const int* pValue,
int defaultValue,
121 const char* paramName,
const char* description);
123 const char* regStringParam(
const char*
const* pValue,
const char* defaultValue,
124 const char* paramName,
const char* description);
126 float regFloatParam(
const float* pValue,
float defaultValue,
127 const char* paramName,
const char* description);
129 double regDoubleParam(
const double* pValue,
double defaultValue,
130 const char* paramName,
const char* description);
Definition: ini_config.h:57
Definition: ini_config.cpp:405