ConfigReader Class Reference

reads configuration file More...

#include <configreader.h>


Public Types

typedef std::map< std::string,
std::string > 
StringMap

Public Member Functions

 ConfigReader (std::istream &is) throw (std::exception)
const StringMapget (const std::string &prefix, bool dontthrow=false) const throw (std::exception)
const std::string & getVal (const std::string &prefix, const std::string &key) const throw (std::exception)
const std::string getValOrDef (const std::string &prefix, const std::string &key, const std::string &def) const throw (std::exception)


Detailed Description

reads configuration file

Author:
Michael Moritz
The configuration file has this syntax:
 prefix_key=value

prefix is used to group values and keys, it can be empty. For example:

 dbtype=mysql
 db_host=localhost
 db_username=greylist

Currently the following prefixes and keys are recognised:

Definition at line 74 of file configreader.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 24 16:36:54 2007 for gps by  doxygen 1.5.1