44 std::string
readString(
const std::string §ion,
const std::string &name,
const std::string &defaultStr,
bool failIfNotFound =
false) const
MRPT_OVERRIDE;
56 void setPrefixes(const
std::
string &prefix_sections, const
std::
string &prefix_keys);
58 std::
string getSectionPrefix() const;
59 std::
string getKeyPrefix() const;
This class allows loading and storing values and vectors of different types from a configuration text...
A wrapper for other CConfigFileBase-based objects that prefixes a given token to every key and/or sec...
CConfigFileBase * m_bound_object
The object we are wrapping.
void writeString(const std::string §ion, const std::string &name, const std::string &str) MRPT_OVERRIDE
A virtual method to write a generic string.
std::string readString(const std::string §ion, const std::string &name, const std::string &defaultStr, bool failIfNotFound=false) const MRPT_OVERRIDE
A virtual method to read a generic string.
std::string m_prefix_keys
std::vector< std::string > vector_string
A type for passing a vector of strings.
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.