Go to the documentation of this file.
34 throw std::logic_error(
"The child class does not implement this method.");
46 std::ostream& out,
const char* varName,
int v)
52 std::ostream& out,
const char* varName,
float v)
58 std::ostream& out,
const char* varName,
double v)
64 std::ostream& out,
const char* varName,
bool v)
71 std::ostream& out,
const char* varName,
const std::string&
v)
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)
#define MRPT_UNUSED_PARAM(a)
Determines whether this is an X86 or AMD64 platform.
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...
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...
std::string format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.
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.
const int LOADABLEOPTS_COLUMN_WIDTH
void getContent(std::string &str) const
Return the current contents of the virtual "config file".
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...
This class allows loading and storing values and vectors of different types from "....
static void dumpVar_string(std::ostream &out, const char *varName, const std::string &v)
GLsizei const GLchar ** string
This class implements a config file-like interface over a memory-stored string list.
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 | |