6 #if !defined(NX_KIT_API) 66 static bool isEnabled();
74 static void setOutput(std::ostream* output);
77 static const char* iniFilesDir();
86 static void setIniFilesDir(
const char* iniFilesDir);
96 const char* iniFile()
const;
97 const char* iniFilePath()
const;
103 #define NX_INI_FLAG(DEFAULT, PARAM, DESCRIPTION) \ 104 const bool PARAM = regBoolParam(&PARAM, DEFAULT, #PARAM, DESCRIPTION) 106 #define NX_INI_INT(DEFAULT, PARAM, DESCRIPTION) \ 107 const int PARAM = regIntParam(&PARAM, DEFAULT, #PARAM, DESCRIPTION) 109 #define NX_INI_STRING(DEFAULT, PARAM, DESCRIPTION) \ 110 const char* const PARAM = regStringParam(&PARAM, DEFAULT, #PARAM, DESCRIPTION) 112 #define NX_INI_FLOAT(DEFAULT, PARAM, DESCRIPTION) \ 113 const float PARAM = regFloatParam(&PARAM, DEFAULT, #PARAM, DESCRIPTION) 115 #define NX_INI_DOUBLE(DEFAULT, PARAM, DESCRIPTION) \ 116 const double PARAM = regDoubleParam(&PARAM, DEFAULT, #PARAM, DESCRIPTION) 119 bool regBoolParam(
const bool* pValue,
bool defaultValue,
120 const char* paramName,
const char* description);
122 int regIntParam(
const int* pValue,
int defaultValue,
123 const char* paramName,
const char* description);
125 const char* regStringParam(
const char*
const* pValue,
const char* defaultValue,
126 const char* paramName,
const char* description);
128 float regFloatParam(
const float* pValue,
float defaultValue,
129 const char* paramName,
const char* description);
131 double regDoubleParam(
const double* pValue,
double defaultValue,
132 const char* paramName,
const char* description);
Definition: ini_config.h:58
Definition: ini_config.cpp:405