Go to the documentation of this file.
53 bool failIfNotFound =
false)
const override;
std::string readString(const std::string §ion, const std::string &name, const std::string &defaultStr, bool failIfNotFound=false) const override
A virtual method to read a generic string.
std::string getKeyPrefix() const
void setPrefixes(const std::string &prefix_sections, const std::string &prefix_keys)
Change the prefix for sections and keys.
CConfigFileBase * m_bound_object
The object we are wrapping.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
CConfigFileBase * getBoundConfigFileBase() const
Returns the currently-bounded config source, or nullptr if none.
std::string getSectionPrefix() const
std::string m_prefix_keys
void bind(const CConfigFileBase &o)
Make this object to wrap the given existing CConfigFileBase object.
GLuint const GLchar * name
CConfigFilePrefixer()
Unbound constructor: must bind this object to CConfigFileBase before usage with bind() and setPrefixe...
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...
void getAllSections(std::vector< std::string > §ions) const override
Returns a list with all the section names.
virtual ~CConfigFilePrefixer()
void getAllKeys(const std::string §ion, std::vector< std::string > &keys) const override
Returs a list with all the keys into a section.
GLsizei const GLchar ** string
std::string m_prefix_sections
void writeString(const std::string §ion, const std::string &name, const std::string &str) override
A virtual method to write a generic string.
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 | |