ConfigFileSection Class Reference
The class to store complete information about configuration file section.
List of all members.
|
Public Member Functions |
void | add (const std::string ¶m, const std::string &value) |
| Adds new parameter and its value to the section.
|
| ConfigFileSection (const std::string &name) |
| The constructor with configuration file section name specification.
|
| ConfigFileSection () |
| The default constructor.
|
std::string | getName () const |
| Returns configuration file section name.
|
bool | has (const std::string &name) const |
| Checks if the section has specified parameter.
|
std::string | operator[] (const std::string &name) const |
| Returns parameter value.
|
void | setName (const std::string &name) |
| Sets new configuration file section name.
|
virtual | ~ConfigFileSection () |
| The destructor.
|
Constructor & Destructor Documentation
ConfigFileSection::ConfigFileSection |
( |
const std::string & |
name |
) |
[inline] |
- Parameters:
-
[in] | name | The name of new configuration file section |
Member Function Documentation
void ConfigFileSection::add |
( |
const std::string & |
param, |
|
|
const std::string & |
value | |
|
) |
| | [inline] |
- Parameters:
-
[in] | param | The name of the parameter to add |
[in] | value | The value of the parameter to add |
bool ConfigFileSection::has |
( |
const std::string & |
name |
) |
const [inline] |
- Parameters:
-
[in] | name | The name of parameter to check |
std::string ConfigFileSection::operator[] |
( |
const std::string & |
name |
) |
const [inline] |
- Parameters:
-
[in] | name | The name of an existing parameter to get value of |
void ConfigFileSection::setName |
( |
const std::string & |
name |
) |
[inline] |
- Parameters:
-
[in] | name | The name to set |