#include <mrpt/utils/CConfigFileMemory.h>
Public Member Functions | |
CConfigFileMemory (const utils::CStringList &stringList) | |
Constructor and initialize from a list of strings. | |
CConfigFileMemory (const std::string &str) | |
Constructor and initialize from string with the whole "config file". | |
CConfigFileMemory () | |
Empty constructor. | |
void | setContent (const utils::CStringList &stringList) |
Changes the contents of the virtual "config file". | |
void | setContent (const std::string &str) |
Changes the contents of the virtual "config file". | |
virtual | ~CConfigFileMemory () |
Destructor. | |
virtual void | getAllSections (vector_string §ions) const |
Returns a list with all the section names. | |
Protected Member Functions | |
void | writeString (const std::string §ion, const std::string &name, const std::string &str) |
A virtual method to write a generic string. | |
std::string | readString (const std::string §ion, const std::string &name, const std::string &defaultStr, bool failIfNotFound=false) const |
A virtual method to read a generic string. | |
Private Attributes | |
void_ptr_noncopy | m_ini |
The IniFile object. |
Definition at line 45 of file CConfigFileMemory.h.
mrpt::utils::CConfigFileMemory::CConfigFileMemory | ( | const utils::CStringList & | stringList | ) |
Constructor and initialize from a list of strings.
mrpt::utils::CConfigFileMemory::CConfigFileMemory | ( | const std::string & | str | ) |
Constructor and initialize from string with the whole "config file".
mrpt::utils::CConfigFileMemory::CConfigFileMemory | ( | ) |
Empty constructor.
Upon construction, call any of the "setContent" method.
virtual mrpt::utils::CConfigFileMemory::~CConfigFileMemory | ( | ) | [virtual] |
Destructor.
virtual void mrpt::utils::CConfigFileMemory::getAllSections | ( | vector_string & | sections | ) | const [virtual] |
std::string mrpt::utils::CConfigFileMemory::readString | ( | const std::string & | section, | |
const std::string & | name, | |||
const std::string & | defaultStr, | |||
bool | failIfNotFound = false | |||
) | const [protected, virtual] |
void mrpt::utils::CConfigFileMemory::setContent | ( | const std::string & | str | ) |
Changes the contents of the virtual "config file".
void mrpt::utils::CConfigFileMemory::setContent | ( | const utils::CStringList & | stringList | ) |
Changes the contents of the virtual "config file".
void mrpt::utils::CConfigFileMemory::writeString | ( | const std::string & | section, | |
const std::string & | name, | |||
const std::string & | str | |||
) | [protected, virtual] |
Page generated by Doxygen 1.5.9 for MRPT 0.6.5 SVN: at Sun Aug 2 11:39:56 CDT 2009 |