MRPT
2.0.4
|
#include <mrpt/core/bits_math.h>
#include <mrpt/core/exceptions.h>
#include <mrpt/system/string_utils.h>
#include <string>
#include <type_traits>
#include <vector>
Go to the source code of this file.
Classes | |
struct | mrpt::typemeta::TEnumType< ENUMTYPE > |
A helper class that can convert an enum value into its textual representation, and viceversa. More... | |
class | mrpt::config::CConfigFileBase |
This class allows loading and storing values and vectors of different types from a configuration text, which can be implemented as a ".ini" file, a memory-stored string, etc... More... | |
Namespaces | |
mrpt | |
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries. | |
mrpt::typemeta | |
mrpt::config | |
Macros | |
#define | MRPT_LOAD_CONFIG_VAR( variableName, variableType, configFileObject, sectionNameStr) |
An useful macro for loading variables stored in a INI-like file under a key with the same name that the variable, and assigning the variable the current value if not found in the config file. More... | |
#define | MRPT_LOAD_CONFIG_VAR_CS(variableName, variableType) MRPT_LOAD_CONFIG_VAR(variableName, variableType, c, s) |
Shortcut for MRPT_LOAD_CONFIG_VAR() for config file object named c and section string named s More... | |
#define | MRPT_LOAD_CONFIG_VAR_DEGREES( variableName, configFileObject, sectionNameStr) |
Loads a double variable, stored as radians but entered in the INI-file as degrees. More... | |
#define | MRPT_LOAD_CONFIG_VAR_DEGREESf( variableName, configFileObject, sectionNameStr) |
#define | MRPT_LOAD_CONFIG_VAR_DEGREES_NO_DEFAULT( variableName, configFileObject, sectionNameStr) |
Loads a double, required, variable, stored as radians but entered in the INI-file as degrees. More... | |
#define | MRPT_LOAD_CONFIG_VAR_CAST( variableName, variableType, variableTypeCast, configFileObject, sectionNameStr) |
#define | MRPT_LOAD_HERE_CONFIG_VAR( variableName, variableType, targetVariable, configFileObject, sectionNameStr) |
#define | MRPT_LOAD_HERE_CONFIG_VAR_NO_DEFAULT( variableName, variableType, targetVariable, configFileObject, sectionNameStr) |
#define | MRPT_LOAD_HERE_CONFIG_VAR_DEGREES( variableName, variableType, targetVariable, configFileObject, sectionNameStr) |
#define | MRPT_LOAD_HERE_CONFIG_VAR_DEGREES_NO_DEFAULT( variableName, variableType, targetVariable, configFileObject, sectionNameStr) |
#define | MRPT_LOAD_CONFIG_VAR_NO_DEFAULT( variableName, variableType, configFileObject, sectionNameStr) |
#define | MRPT_LOAD_CONFIG_VAR_REQUIRED_CS(variableName, variableType) MRPT_LOAD_CONFIG_VAR_NO_DEFAULT(variableName, variableType, c, s) |
Shortcut for MRPT_LOAD_CONFIG_VAR_NO_DEFAULT() for REQUIRED variables config file object named c and section string named s More... | |
#define | MRPT_LOAD_CONFIG_VAR_CAST_NO_DEFAULT( variableName, variableType, variableTypeCast, configFileObject, sectionNameStr) |
#define | MRPT_LOAD_HERE_CONFIG_VAR_CAST( variableName, variableType, variableTypeCast, targetVariable, configFileObject, sectionNameStr) |
#define | MRPT_LOAD_HERE_CONFIG_VAR_CAST_NO_DEFAULT( variableName, variableType, variableTypeCast, targetVariable, configFileObject, sectionNameStr) |
#define | MRPT_SAVE_CONFIG_VAR(variableName, configFileObject, sectionNameStr) |
#define | MRPT_SAVE_CONFIG_VAR_DEGREES( variableName, configFileObject, sectionNameStr) |
#define | MRPT_SAVE_CONFIG_VAR_COMMENT(variableName, __comment) |
#define | MRPT_SAVE_CONFIG_VAR_DEGREES_COMMENT( __entryName, __variable, __comment) |
Functions | |
int | mrpt::config::MRPT_SAVE_NAME_PADDING () |
Default padding sizes for macros MRPT_SAVE_CONFIG_VAR_COMMENT(), etc. More... | |
int | mrpt::config::MRPT_SAVE_VALUE_PADDING () |
#define MRPT_LOAD_CONFIG_VAR | ( | variableName, | |
variableType, | |||
configFileObject, | |||
sectionNameStr | |||
) |
An useful macro for loading variables stored in a INI-like file under a key with the same name that the variable, and assigning the variable the current value if not found in the config file.
The variableType must be the suffix of "read_XXX" functions, i.e. int, bool,...
Definition at line 307 of file config/CConfigFileBase.h.
#define MRPT_LOAD_CONFIG_VAR_CAST | ( | variableName, | |
variableType, | |||
variableTypeCast, | |||
configFileObject, | |||
sectionNameStr | |||
) |
Definition at line 344 of file config/CConfigFileBase.h.
#define MRPT_LOAD_CONFIG_VAR_CAST_NO_DEFAULT | ( | variableName, | |
variableType, | |||
variableTypeCast, | |||
configFileObject, | |||
sectionNameStr | |||
) |
Definition at line 424 of file config/CConfigFileBase.h.
#define MRPT_LOAD_CONFIG_VAR_CS | ( | variableName, | |
variableType | |||
) | MRPT_LOAD_CONFIG_VAR(variableName, variableType, c, s) |
Shortcut for MRPT_LOAD_CONFIG_VAR() for config file object named c
and section string named s
Definition at line 316 of file config/CConfigFileBase.h.
#define MRPT_LOAD_CONFIG_VAR_DEGREES | ( | variableName, | |
configFileObject, | |||
sectionNameStr | |||
) |
Loads a double variable, stored as radians but entered in the INI-file as degrees.
Definition at line 321 of file config/CConfigFileBase.h.
#define MRPT_LOAD_CONFIG_VAR_DEGREES_NO_DEFAULT | ( | variableName, | |
configFileObject, | |||
sectionNameStr | |||
) |
Loads a double, required, variable, stored as radians but entered in the INI-file as degrees.
Definition at line 336 of file config/CConfigFileBase.h.
#define MRPT_LOAD_CONFIG_VAR_DEGREESf | ( | variableName, | |
configFileObject, | |||
sectionNameStr | |||
) |
Definition at line 327 of file config/CConfigFileBase.h.
#define MRPT_LOAD_CONFIG_VAR_NO_DEFAULT | ( | variableName, | |
variableType, | |||
configFileObject, | |||
sectionNameStr | |||
) |
Definition at line 402 of file config/CConfigFileBase.h.
#define MRPT_LOAD_CONFIG_VAR_REQUIRED_CS | ( | variableName, | |
variableType | |||
) | MRPT_LOAD_CONFIG_VAR_NO_DEFAULT(variableName, variableType, c, s) |
Shortcut for MRPT_LOAD_CONFIG_VAR_NO_DEFAULT() for REQUIRED variables config file object named c
and section string named s
Definition at line 421 of file config/CConfigFileBase.h.
#define MRPT_LOAD_HERE_CONFIG_VAR | ( | variableName, | |
variableType, | |||
targetVariable, | |||
configFileObject, | |||
sectionNameStr | |||
) |
Definition at line 353 of file config/CConfigFileBase.h.
#define MRPT_LOAD_HERE_CONFIG_VAR_CAST | ( | variableName, | |
variableType, | |||
variableTypeCast, | |||
targetVariable, | |||
configFileObject, | |||
sectionNameStr | |||
) |
Definition at line 443 of file config/CConfigFileBase.h.
#define MRPT_LOAD_HERE_CONFIG_VAR_CAST_NO_DEFAULT | ( | variableName, | |
variableType, | |||
variableTypeCast, | |||
targetVariable, | |||
configFileObject, | |||
sectionNameStr | |||
) |
Definition at line 450 of file config/CConfigFileBase.h.
#define MRPT_LOAD_HERE_CONFIG_VAR_DEGREES | ( | variableName, | |
variableType, | |||
targetVariable, | |||
configFileObject, | |||
sectionNameStr | |||
) |
Definition at line 377 of file config/CConfigFileBase.h.
#define MRPT_LOAD_HERE_CONFIG_VAR_DEGREES_NO_DEFAULT | ( | variableName, | |
variableType, | |||
targetVariable, | |||
configFileObject, | |||
sectionNameStr | |||
) |
Definition at line 383 of file config/CConfigFileBase.h.
#define MRPT_LOAD_HERE_CONFIG_VAR_NO_DEFAULT | ( | variableName, | |
variableType, | |||
targetVariable, | |||
configFileObject, | |||
sectionNameStr | |||
) |
Definition at line 359 of file config/CConfigFileBase.h.
#define MRPT_SAVE_CONFIG_VAR | ( | variableName, | |
configFileObject, | |||
sectionNameStr | |||
) |
Definition at line 469 of file config/CConfigFileBase.h.
#define MRPT_SAVE_CONFIG_VAR_COMMENT | ( | variableName, | |
__comment | |||
) |
Definition at line 481 of file config/CConfigFileBase.h.
#define MRPT_SAVE_CONFIG_VAR_DEGREES | ( | variableName, | |
configFileObject, | |||
sectionNameStr | |||
) |
Definition at line 474 of file config/CConfigFileBase.h.
#define MRPT_SAVE_CONFIG_VAR_DEGREES_COMMENT | ( | __entryName, | |
__variable, | |||
__comment | |||
) |
Definition at line 488 of file config/CConfigFileBase.h.
Page generated by Doxygen 1.8.18 for MRPT 2.0.4 at Thu Sep 24 07:14:18 UTC 2020 |