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