class mrpt::config::CConfigFileBase¶
This class allows loading and storing values and vectors of different types from a configuration text, which can be implemented as a “.ini” file, a memory-stored string, etc…
This is a virtual class, use only as a pointer to an implementation of one of the derived classes.
See: Configuration file format in MRPT
#include <mrpt/config/CConfigFileBase.h> class CConfigFileBase { public: // methods virtual void getAllSections(std::vector<std::string>& sections) const = 0; virtual void getAllKeys(const std::string& section, std::vector<std::string>& keys) const = 0; virtual void clear() = 0; }; // direct descendants class CConfigFile; class CConfigFileMemory; class CConfigFilePrefixer;
Methods¶
virtual void getAllSections(std::vector<std::string>& sections) const = 0
Returns a list with all the section names.
virtual void getAllKeys( const std::string& section, std::vector<std::string>& keys ) const = 0
Returs a list with all the keys into a section.
virtual void clear() = 0
Empties the “config file”.