43 void writeString(
const std::string §ion,
const std::string &name,
const std::string &str)
MRPT_OVERRIDE;
44 std::string readString(
const std::string §ion,
const std::string &name,
const std::string &defaultStr,
bool failIfNotFound =
false) const MRPT_OVERRIDE;
50 CConfigFilePrefixer(const
CConfigFileBase &o, const
std::
string &prefix_sections, const
std::
string &prefix_keys);
56 void setPrefixes(const
std::
string &prefix_sections, const
std::
string &prefix_keys);
58 std::
string getSectionPrefix() const;
59 std::
string getKeyPrefix() const;
62 virtual ~CConfigFilePrefixer();
64 void getAllSections(
vector_string §ions ) const MRPT_OVERRIDE;
65 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.