Loads a Configfile.
More...
#include <Config.h>
List of all members.
Public Member Functions |
| Config (const char *filename, const char fieldSeparator= ':') |
Data | get (const std::string &key) const |
| ~Config () |
Private Member Functions |
std::string | trim (std::string str) |
Private Attributes |
std::map< std::string, Data > | myConfigItems |
Friends |
std::ostream & | operator<< (std::ostream &os, const Config &config) |
Detailed Description
Loads a Configfile.
- Author:
- Julian Giesen (R18)
Definition at line 40 of file Config.h.
Constructor & Destructor Documentation
Config::Config |
( |
const char * |
filename, |
|
|
const char |
fieldSeparator = ':' |
|
) |
| [inline] |
Constructor
Definition at line 45 of file Config.h.
Destructor
Definition at line 84 of file Config.h.
Member Function Documentation
- Returns:
- reads the configfile and returns the items
Definition at line 87 of file Config.h.
std::string Config::trim |
( |
std::string |
str | ) |
[inline, private] |
- Returns:
- trims leading and trailing spaces and returns the prepared String
Definition at line 119 of file Config.h.
Friends And Related Function Documentation
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Config & |
config |
|
) |
| [friend] |
Member Data Documentation
The documentation for this class was generated from the following file: