MRXT: The Multi-Robot eXploration Tool
Multi-Robot autonomous exploration and mapping simulator.
|
Config File Reader. More...
#include <ConfigFile.h>
Classes | |
struct | file_not_found |
config file not found exception More... | |
struct | key_not_found |
key not found exception More... | |
Public Member Functions | |
ConfigFile (string filename, string delimiter="=", string comment="#", string sentry="EndConfigFile") | |
template<class T > | |
void | add (string key, const T &value) |
string | getComment () const |
string | getDelimiter () const |
string | getSentry () const |
bool | keyExists (const string &key) const |
template<class T > | |
T | read (const string &key) const |
template<class T > | |
T | read (const string &key, const T &value) const |
template<class T > | |
bool | readInto (T &var, const string &key) const |
template<class T > | |
bool | readInto (T &var, const string &key, const T &value) const |
void | remove (const string &key) |
string | setComment (const string &s) |
string | setDelimiter (const string &s) |
Protected Types | |
typedef std::map< string, string >::const_iterator | mapci |
typedef std::map< string, string >::iterator | mapi |
Static Protected Member Functions | |
template<class T > | |
static T | string_as_T (const string &s) |
template<class T > | |
static string | T_as_string (const T &t) |
static void | trim (string &s) |
Protected Attributes | |
string | myComment |
std::map< string, string > | myContents |
string | myDelimiter |
string | mySentry |
Friends | |
std::ostream & | operator<< (std::ostream &os, const ConfigFile &cf) |
std::istream & | operator>> (std::istream &is, ConfigFile &cf) |
Config File Reader.
Definition at line 58 of file ConfigFile.h.