24 m_prefix_sections(prefix_sections),
25 m_prefix_keys(prefix_keys)
58 for (
size_t i=0;i<sections.size();i++)
66 for (
size_t i=0;i<keys.size();i++)
virtual void getAllKeys(const std::string §ion, vector_string &keys) const =0
Returs a list with all the keys into a section.
void getAllKeys(const std::string §ion, vector_string &keys) const MRPT_OVERRIDE
Returs a list with all the keys into a section.
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
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 getKeyPrefix() const
CConfigFilePrefixer()
Unbound constructor: must bind this object to CConfigFileBase before usage with bind() and setPrefixe...
void setPrefixes(const std::string &prefix_sections, const std::string &prefix_keys)
Change the prefix for sections and keys.
virtual std::string readString(const std::string §ion, const std::string &name, const std::string &defaultStr, bool failIfNotFound=false) const =0
A virtual method to read 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.
This class allows loading and storing values and vectors of different types from a configuration text...
virtual ~CConfigFilePrefixer()
std::vector< std::string > vector_string
A type for passing a vector of strings.
void getAllSections(vector_string §ions) const MRPT_OVERRIDE
Returns a list with all the section names.
virtual void getAllSections(vector_string §ions) const =0
Returns a list with all the section names.
std::string getSectionPrefix() const
GLsizei const GLchar ** string
std::string m_prefix_keys
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
CConfigFileBase * getBoundConfigFileBase() const
Returns the currently-bounded config source, or NULL if none.
std::string m_prefix_sections
CConfigFileBase * m_bound_object
The object we are wrapping.
GLuint const GLchar * name
#define ASSERTMSG_(f, __ERROR_MSG)
void bind(const CConfigFileBase &o)
Make this object to wrap the given existing CConfigFileBase object.
virtual void writeString(const std::string §ion, const std::string &name, const std::string &str)=0
A virtual method to write a generic string.