Go to the documentation of this file.
33 static void dumpVar_int(std::ostream& out,
const char* varName,
int v);
34 static void dumpVar_float(std::ostream& out,
const char* varName,
float v);
36 std::ostream& out,
const char* varName,
double v);
37 static void dumpVar_bool(std::ostream& out,
const char* varName,
bool v);
39 std::ostream& out,
const char* varName,
const std::string&
v);
103 #define LOADABLEOPTS_DUMP_VAR(variableName, variableType) \
105 dumpVar_##variableType( \
106 out, #variableName, static_cast<variableType>(variableName)); \
111 #define LOADABLEOPTS_DUMP_VAR_DEG(variableName) \
114 out, #variableName, RAD2DEG(static_cast<double>(variableName))); \
void dumpToConsole() const
Just like dumpToTextStream() but sending the text to the console (std::cout)
static void dumpVar_double(std::ostream &out, const char *varName, double v)
void loadFromConfigFileName(const std::string &config_file, const std::string §ion)
Behaves like loadFromConfigFile, but you can pass directly a file name and a temporary CConfigFile ob...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
GLsizei GLsizei GLchar * source
static void dumpVar_float(std::ostream &out, const char *varName, float v)
virtual void loadFromConfigFile(const mrpt::config::CConfigFileBase &source, const std::string §ion)=0
This method load the options from a ".ini"-like file or memory-stored string list.
static void dumpVar_bool(std::ostream &out, const char *varName, bool v)
static void dumpVar_int(std::ostream &out, const char *varName, int v)
Used to print variable info from dumpToTextStream with the macro LOADABLEOPTS_DUMP_VAR.
This class allows loading and storing values and vectors of different types from a configuration text...
virtual void saveToConfigFile(mrpt::config::CConfigFileBase &target, const std::string §ion) const
This method saves the options to a ".ini"-like file or memory-stored string list.
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...
mrpt::config::CConfigFileBase CConfigFileBase
void saveToConfigFileName(const std::string &config_file, const std::string §ion) const
Behaves like saveToConfigFile, but you can pass directly a file name and a temporary CConfigFile obje...
static void dumpVar_string(std::ostream &out, const char *varName, const std::string &v)
GLsizei const GLchar ** string
virtual ~CLoadableOptions()
Virtual destructor.
virtual void dumpToTextStream(std::ostream &out) const
This method should clearly display all the contents of the structure in textual form,...
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |