42 void setContent(
const std::vector<std::string>& stringList);
56 void getAllSections(std::vector<std::string>& sections)
const override;
75 bool failIfNotFound =
false)
const override;
This class implements a config file-like interface over a memory-stored string list.
CConfigFileMemory()
Empty constructor.
spimpl::impl_ptr< T > pimpl
std::string getContent() const
void getAllKeys(const std::string §ion, std::vector< std::string > &keys) const override
Returs a list with all the keys into a section.
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.
GLsizei const GLchar ** string
void getAllSections(std::vector< std::string > §ions) const override
Returns a list with all the section names.
mrpt::pimpl< Impl > m_impl
void setContent(const std::vector< std::string > &stringList)
Changes the contents of the virtual "config file".
GLuint const GLchar * name
virtual ~CConfigFileMemory()
dtor
void writeString(const std::string §ion, const std::string &name, const std::string &str) override
A virtual method to write a generic string.