#include <source/ariba/utility/transport/tcpip/protlib/configuration.h>
Public Types | |
enum | type_t { T_BOOL, T_INT, T_FLOAT, T_STR, T_IPv4, T_IPv6, T_IPv4_LIST, T_IPv6_LIST, T_END } |
Public Member Functions | |
config_entry (std::string key, type_t type, bool required=true) | |
config_entry (std::string key, bool value) | |
config_entry (std::string key, int value) | |
config_entry (std::string key, float value) | |
config_entry (std::string key, std::string value) | |
config_entry () | |
Private Attributes | |
std::string | key |
type_t | type |
bool | required |
bool | defined |
bool | bool_value |
int | int_value |
float | float_value |
std::string | str_value |
hostaddress | ipv4_value |
hostaddress | ipv6_value |
std::list< hostaddress > | address_list |
Friends | |
class | configuration |
This specifies the name of the key, the value type, and optionally an initial default value.
Definition at line 74 of file configuration.h.
Definition at line 76 of file configuration.h.
natfw::config_entry::config_entry | ( | std::string | key, | |
type_t | type, | |||
bool | required = true | |||
) | [inline] |
Definition at line 81 of file configuration.h.
natfw::config_entry::config_entry | ( | std::string | key, | |
bool | value | |||
) | [inline] |
Definition at line 84 of file configuration.h.
natfw::config_entry::config_entry | ( | std::string | key, | |
int | value | |||
) | [inline] |
Definition at line 87 of file configuration.h.
natfw::config_entry::config_entry | ( | std::string | key, | |
float | value | |||
) | [inline] |
Definition at line 90 of file configuration.h.
natfw::config_entry::config_entry | ( | std::string | key, | |
std::string | value | |||
) | [inline] |
Definition at line 93 of file configuration.h.
natfw::config_entry::config_entry | ( | ) | [inline] |
Definition at line 96 of file configuration.h.
friend class configuration [friend] |
Definition at line 112 of file configuration.h.
std::list<hostaddress> natfw::config_entry::address_list [private] |
bool natfw::config_entry::bool_value [private] |
bool natfw::config_entry::defined [private] |
Definition at line 102 of file configuration.h.
Referenced by natfw::configuration::dump(), and natfw::configuration::load().
float natfw::config_entry::float_value [private] |
int natfw::config_entry::int_value [private] |
hostaddress natfw::config_entry::ipv4_value [private] |
hostaddress natfw::config_entry::ipv6_value [private] |
std::string natfw::config_entry::key [private] |
Definition at line 99 of file configuration.h.
Referenced by natfw::configuration::dump(), and natfw::configuration::load().
bool natfw::config_entry::required [private] |
std::string natfw::config_entry::str_value [private] |
type_t natfw::config_entry::type [private] |
Definition at line 100 of file configuration.h.
Referenced by natfw::configuration::configuration(), and natfw::configuration::dump().