9 #ifndef CLoadableOptions_H 10 #define CLoadableOptions_H 21 class CConfigFileBase;
33 static void dumpVar_int(
CStream &out,
const char *varName,
int v );
34 static void dumpVar_float(
CStream &out,
const char *varName,
float v );
35 static void dumpVar_double(
CStream &out,
const char *varName,
double v );
36 static void dumpVar_bool(
CStream &out,
const char *varName,
bool v );
54 virtual void loadFromConfigFile(
61 void loadFromConfigFileName(
68 virtual void saveToConfigFile(
75 void saveToConfigFileName(
80 void dumpToConsole()
const;
93 #define LOADABLEOPTS_DUMP_VAR(variableName,variableType) { dumpVar_##variableType(out, #variableName,static_cast<variableType>(variableName)); } 96 #define LOADABLEOPTS_DUMP_VAR_DEG(variableName) { dumpVar_double(out, #variableName,RAD2DEG(static_cast<double>(variableName))); } This class allows loading and storing values and vectors of different types from a configuration text...
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
GLsizei const GLchar ** string
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
GLsizei GLsizei GLchar * source
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...
virtual ~CLoadableOptions()
Virtual destructor.