Public Member Functions | Private Member Functions | Private Attributes | Friends
Config Class Reference

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, DatamyConfigItems

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.

Config::~Config ( ) [inline]

Destructor

Definition at line 84 of file Config.h.


Member Function Documentation

Data Config::get ( const std::string &  key) const [inline]
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]

Definition at line 101 of file Config.h.


Member Data Documentation

std::map<std::string, Data> Config::myConfigItems [private]

Definition at line 138 of file Config.h.


The documentation for this class was generated from the following file:


robot_face
Author(s): AGAS, Julian Giesen, David Gossow
autogenerated on Mon Jan 6 2014 11:41:09