Go to the documentation of this file.
56 bool failIfNotFound =
false)
const override;
89 std::vector<std::string>& sections)
const override;
94 std::vector<std::string>& keys)
const override;
virtual void getAllSections(std::vector< std::string > §ions) const override
Returns a list with all the section names.
mrpt::pimpl< Impl > m_impl
virtual ~CConfigFile()
Destructor.
CConfigFile()
Constructor, does not open any file.
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.
spimpl::impl_ptr< T > pimpl
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
void discardSavingChanges()
Discard saving (current) changes to physical file upon destruction.
void setFileName(const std::string &fil_path)
Associate this object with the given file, so future read/write operations will be applied to that fi...
GLuint const GLchar * name
std::string m_file
The name of the file.
std::string getAssociatedFile() const
Returns the file currently open by this object.
This class allows loading and storing values and vectors of different types from a configuration text...
void writeNow()
Dumps the changes to the physical configuration file now, not waiting until destruction.
void writeString(const std::string §ion, const std::string &name, const std::string &str) override
A virtual method to write a generic string
This class allows loading and storing values and vectors of different types from "....
GLsizei const GLchar ** string
virtual void getAllKeys(const std::string §ion, std::vector< std::string > &keys) const override
Returs a list with all the keys into a section.
bool m_modified
If modified since load.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |