Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages

Config Class Reference

#include <Config.hpp>

List of all members.

Public Member Functions

 Config (string configFile)
void addConf (string conf, string value)
string getConf (const string &conf) const

Private Attributes

std::map< std::string, std::string > configs


Detailed Description

Config - Parses a configuration file and stores these configurations.

A configuration is a simple (key, value) pair, stored as strings.

Author:
Andrei Goldchleger


Constructor & Destructor Documentation

Config::Config string  configFile  ) 
 

Constructor.

Parameters:
configFile - the path of the configuration file to be parsed.


Member Function Documentation

void Config::addConf string  conf,
string  value
 

Adds a configuration.

Parameters:
conf - configuration's name (key)
value - configuration's value

std::string Config::getConf const string &  conf  )  const
 

gets a configuration.

Parameters:
conf - configuration's name


Member Data Documentation

std::map<std::string, std::string> Config::configs [private]
 

holds our configurations


The documentation for this class was generated from the following files:
Generated on Mon Sep 6 16:13:10 2004 by doxygen 1.3.3