libabigail
|
The abstraction of one section of the .ini config. More...
#include <abg-ini.h>
Public Member Functions | |
section (const string &name) | |
Constructor for config::section. More... | |
section (const string &name, const properties_type &properties) | |
Constructor for the config::section. More... | |
virtual | ~section () |
Destructor of config::section. More... | |
void | add_property (const property_sptr prop) |
Add one property to this section. More... | |
property_sptr | find_property (const string &prop_name) const |
Find a property that has a given name. More... | |
const string & | get_name () const |
Get the name of the section. More... | |
const properties_type & | get_properties () const |
Get the properties of the section. More... | |
void | set_properties (const properties_type &properties) |
Set the properties of the section. More... | |
section | ( | const string & | name | ) |
Constructor for config::section.
name | the name of the ini section. |
Definition at line 794 of file abg-ini.cc.
section | ( | const string & | name, |
const properties_type & | properties | ||
) |
Constructor for the config::section.
name | the name of the ini section. |
properties | the properties of the section. |
Definition at line 803 of file abg-ini.cc.
|
virtual |
Destructor of config::section.
Definition at line 856 of file abg-ini.cc.
void add_property | ( | const property_sptr | prop | ) |
Add one property to this section.
prop | the property to add to the section. |
Definition at line 833 of file abg-ini.cc.
property_sptr find_property | ( | const string & | prop_name | ) | const |
Find a property that has a given name.
Note that this only returns the first property with that name.
prop_name | the name of the property to find. |
prop_name
was found. Definition at line 845 of file abg-ini.cc.
const string & get_name | ( | ) | const |
Get the name of the section.
Definition at line 812 of file abg-ini.cc.
const config::properties_type & get_properties | ( | ) | const |
Get the properties of the section.
Definition at line 819 of file abg-ini.cc.
void set_properties | ( | const properties_type & | properties | ) |
Set the properties of the section.
properties | the new properties to set. |
Definition at line 826 of file abg-ini.cc.