n2nc::ConfigurationOpt Class Reference

Class to provides configuration option pair. More...

#include <configuration.h>

List of all members.

Public Member Functions

 ConfigurationOpt (std::string first, std::string second)
 ConfigurationOpt (const ConfigurationOpt &opt)
std::string toString ()
std::string value ()
void setValue (std::string value)
void operator= (std::string value)


Detailed Description

Class to provides configuration option pair.

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

configuration_ex.cpp.

Definition at line 12 of file configuration.h.


Constructor & Destructor Documentation

n2nc::ConfigurationOpt::ConfigurationOpt ( std::string  first,
std::string  second 
)

Parameters:
first The option name.
second The option value.

Definition at line 7 of file configuration.cpp.

n2nc::ConfigurationOpt::ConfigurationOpt ( const ConfigurationOpt opt  ) 

Copy constructor

Definition at line 11 of file configuration.cpp.

References m_first, and m_second.


Member Function Documentation

void n2nc::ConfigurationOpt::setValue ( std::string  value  ) 

sets the associated value for this Config

Definition at line 17 of file configuration.cpp.

void n2nc::ConfigurationOpt::operator= ( std::string  value  ) 

sets the associated value for this Config. eg: ConfigurationOpt opt("key","value"); opt = "newvalue" ;


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