n2nc::ConfigurationCtx Class Reference

Class to provides configuration context. A context is ConfigurationOpt container. More...

#include <configuration.h>

List of all members.

Public Member Functions

 ConfigurationCtx (std::string name)
std::string toString ()
bool addOption (const ConfigurationOpt &opt)
bool delOption (ConfigurationOpt &opt)
ConfigurationOptgetOpt (std::string optname)
ConfigurationOptoperator[] (std::string optname)


Detailed Description

Class to provides configuration context. A context is ConfigurationOpt container.

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

configuration_ex.cpp.

Definition at line 43 of file configuration.h.


Member Function Documentation

std::string n2nc::ConfigurationCtx::toString (  ) 

To string

bool n2nc::ConfigurationCtx::addOption ( const ConfigurationOpt opt  ) 

Adds an Option in this context

Definition at line 31 of file configuration.cpp.

bool n2nc::ConfigurationCtx::delOption ( ConfigurationOpt opt  ) 

Deletes an Option in this context

ConfigurationOpt& n2nc::ConfigurationCtx::getOpt ( std::string  optname  ) 

Returns:
the option value associated to optname

ConfigurationOpt& n2nc::ConfigurationCtx::operator[] ( std::string  optname  ) 

Returns:
the option value associated to optname


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