46 void writeString(
const std::string §ion,
const std::string &name,
const std::string &str);
51 std::string readString(
52 const std::string §ion,
53 const std::string &name,
54 const std::string &defaultStr,
55 bool failIfNotFound =
false)
const;
68 void setFileName(
const std::string &fil_path);
87 virtual void getAllKeys(
const std::string §ion,
vector_string &keys )
const;
This class allows loading and storing values and vectors of different types from ".ini" files easily.
This class allows loading and storing values and vectors of different types from a configuration text...
std::string getAssociatedFile() const
Returns the file currently open by this object.
std::vector< std::string > vector_string
A type for passing a vector of strings.
bool m_modified
If modified since load.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::string m_file
The name of the file.
void_ptr_noncopy m_ini
The interface to the file: