9 #ifndef CConfigFileMemory_H 10 #define CConfigFileMemory_H 34 void writeString(
const std::string §ion,
const std::string &name,
const std::string &str)
MRPT_OVERRIDE;
38 std::string readString(
39 const std::string §ion,
40 const std::string &name,
41 const std::string &defaultStr,
42 bool failIfNotFound =
false) const MRPT_OVERRIDE;
61 void setContent( const utils::
CStringList &stringList );
64 void setContent( const
std::
string &str );
67 void getContent(
std::
string &str ) const;
70 inline
std::
string getContent()
const { std::string s;
getContent(s);
return s; }
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
This class allows loading and storing values and vectors of different types from a configuration text...
This class implements a config file-like interface over a memory-stored string list.
std::vector< std::string > vector_string
A type for passing a vector of strings.
A class for storing a list of text lines.
std::string getContent() const
Return the currnet contents of the virtual "config file".
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
void_ptr_noncopy m_ini
The IniFile object.