![]() |
AnCH Framework
0.1
Another C++ Hack Framework
|
#include <section.hpp>
Public Member Functions | |
Section () | |
Section (const Section §ion) | |
~Section () | |
const std::map< std::string, std::string > & | getParameters () const |
void | setParameters (const std::map< std::string, std::string > ¶meters) |
void | addParameter (const std::string ¶m, const std::string &value) |
const std::string & | getParameter (const std::string ¶meterName) const |
Static Public Attributes | |
static std::string | DEFAULT_VALUE = "" |
Parameters defined in a section
Section::Section | ( | ) |
Section default constructor
Section::~Section | ( | ) |
Section destructor
|
inline |
Add parameter to section
param | The parameter |
value | The associated value |
|
inline |
Parameter getter.
Search a parameter value by parameter name. If not found, an empty string will be returned.
parameterName | The parameter's name |
|
inline |
Parameters getter
|
inline |
Parameters setter
parameters | The parameters |
|
static |
Parameter default value when not found