9 #ifndef CConfigFileMemory_H 10 #define CConfigFileMemory_H 82 bool failIfNotFound =
false)
const override;
void getAllSections(vector_string §ions) const override
Returns a list with all the section names.
This class allows loading and storing values and vectors of different types from a configuration text...
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 getContent() const
This class implements a config file-like interface over a memory-stored string list.
std::vector< std::string > vector_string
A type for passing a vector of strings.
A class for storing a list of text lines.
GLsizei const GLchar ** string
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
virtual ~CConfigFileMemory()
dtor
CConfigFileMemory & operator=(const CConfigFileMemory &o)
Copy operator.
GLuint const GLchar * name
void_ptr_noncopy m_ini
The IniFile object.
void writeString(const std::string §ion, const std::string &name, const std::string &str) override
A virtual method to write a generic string.
void getAllKeys(const std::string §ion, vector_string &keys) const override
Returs a list with all the keys into a section.
CConfigFileMemory()
Empty constructor.
void setContent(const utils::CStringList &stringList)
Changes the contents of the virtual "config file".