42 const std::string §ion,
43 const std::string &name,
44 const std::string &defaultStr,
57 void setFileName(const std::
string &fil_path);
63 std::
string getAssociatedFile()
const {
return m_file; }
This class allows loading and storing values and vectors of different types from a configuration text...
This class allows loading and storing values and vectors of different types from "....
void writeString(const std::string §ion, const std::string &name, const std::string &str) MRPT_OVERRIDE
A virtual method to write a generic string
virtual void getAllKeys(const std::string §ion, vector_string &keys) const MRPT_OVERRIDE
Returs a list with all the keys into a section.
void_ptr_noncopy m_ini
The interface to the file:
virtual ~CConfigFile()
Destructor.
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.
virtual void getAllSections(vector_string §ions) const MRPT_OVERRIDE
Returns a list with all the section names.
std::string m_file
The name of the file.
bool m_modified
If modified since load.
std::vector< std::string > vector_string
A type for passing a vector of strings.
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.