9#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) || defined(__WIN32__) || defined(WIN64) || defined(_WIN64) || defined(__WIN64) || defined(__WIN64__)
13#elif defined(linux) || defined(__linux) || defined(__linux__) || defined(__GNUC__) || defined(__GNUG__) || defined(unix) || defined(__unix) || defined(__unix__)
18#error OS not supported
22#define sscanf_s sscanf
60 bool getInt(
const char* key,
int* val);
76 bool getHex(
const char* key,
unsigned int* val);
A class for file reading and writing.
Definition: File.h:30
A class for configuration-file reading.
Definition: IniReader.h:41
bool isOpen()
Check if open correctly.
bool getString(const char *key, std::string *val)
Get string variable.
bool getInt(const char *key, int *val)
Get integer variable.
bool getDoubleArray(const char *key, std::vector< double > *double_array)
Get a double vector.
bool getDouble(const char *key, double *val)
Get double variable.
std::string _name
Name of the configuration file.
Definition: IniReader.h:110
bool getHex(const char *key, unsigned int *val)
Get an hex number.
File * p_file
Poinnter to the File object.
Definition: IniReader.h:109
IniReader(const char *name)
Constructor.
bool getStringArray(const char *key, std::vector< std::string > *str_array)
Get a string vector.