n2nc::Configuration Class Reference

Class to provides configuration handler and storage. This class is a ConfigurationCtx container. More...

#include <configuration.h>

List of all members.

Public Member Functions

std::string toString ()
bool fromString (std::string &str)
bool addContext (const ConfigurationCtx &ctx)
bool delContext (ConfigurationCtx &ctx)
ConfigurationCtxgetCtx (std::string ctxname)
ConfigurationCtxoperator[] (std::string ctxname)


Detailed Description

Class to provides configuration handler and storage. This class is a ConfigurationCtx container.

Author:
fabsoft <fabsoft@gmail.com>
Examples:

configuration_ex.cpp.

Definition at line 69 of file configuration.h.


Member Function Documentation

std::string n2nc::Configuration::toString (  ) 

To string.

Returns:
A string containing all contexts and their options

bool n2nc::Configuration::fromString ( std::string &  str  ) 

Loads configuration from string

bool n2nc::Configuration::addContext ( const ConfigurationCtx ctx  ) 

Adds a Context

Examples:
configuration_ex.cpp.

Definition at line 54 of file configuration.cpp.

bool n2nc::Configuration::delContext ( ConfigurationCtx ctx  ) 

Deletes a Context

ConfigurationCtx& n2nc::Configuration::getCtx ( std::string  ctxname  ) 

Returns:
The Context by its name

ConfigurationCtx & n2nc::Configuration::operator[] ( std::string  ctxname  ) 

Returns:
The Context by its name.

Definition at line 25 of file configuration.cpp.


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

Generated on Mon Oct 6 19:32:19 2008 for n2nc by  doxygen 1.5.5