AnCH Framework  0.1
Another C++ Hack Framework
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Static Public Attributes | List of all members
anch::resource::Section Class Reference

#include <section.hpp>

Collaboration diagram for anch::resource::Section:

Public Member Functions

 Section ()
 
 Section (const Section &section)
 
 ~Section ()
 
const std::map< std::string, std::string > & getParameters () const
 
void setParameters (const std::map< std::string, std::string > &parameters)
 
void addParameter (const std::string &param, const std::string &value)
 
const std::string & getParameter (const std::string &parameterName) const
 

Static Public Attributes

static std::string DEFAULT_VALUE = ""
 

Detailed Description

Parameters defined in a section

Author
Vincent Lachenal

Constructor & Destructor Documentation

Section::Section ( )

Section default constructor

Section::Section ( const Section section)

Section copy constructor

Section::~Section ( )

Section destructor

Member Function Documentation

void anch::resource::Section::addParameter ( const std::string &  param,
const std::string &  value 
)
inline

Add parameter to section

Parameters
paramThe parameter
valueThe associated value
const std::string& anch::resource::Section::getParameter ( const std::string &  parameterName) const
inline

Parameter getter.
Search a parameter value by parameter name. If not found, an empty string will be returned.

Parameters
parameterNameThe parameter's name
Returns
The parameter value or empty if not found
const std::map<std::string,std::string>& anch::resource::Section::getParameters ( ) const
inline

Parameters getter

Returns
The parameters
void anch::resource::Section::setParameters ( const std::map< std::string, std::string > &  parameters)
inline

Parameters setter

Parameters
parametersThe parameters

Member Data Documentation

string Section::DEFAULT_VALUE = ""
static

Parameter default value when not found


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