#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 |
The specification of a configuration entry.
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] |
Definition at line 110 of file configuration.h.
Referenced by natfw::configuration::dump().
bool natfw::config_entry::bool_value [private] |
Definition at line 104 of file configuration.h.
Referenced by natfw::configuration::dump().
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] |
Definition at line 106 of file configuration.h.
Referenced by natfw::configuration::dump().
int natfw::config_entry::int_value [private] |
Definition at line 105 of file configuration.h.
Referenced by natfw::configuration::dump().
hostaddress natfw::config_entry::ipv4_value [private] |
Definition at line 108 of file configuration.h.
Referenced by natfw::configuration::dump().
hostaddress natfw::config_entry::ipv6_value [private] |
Definition at line 109 of file configuration.h.
Referenced by natfw::configuration::dump().
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] |
Definition at line 101 of file configuration.h.
Referenced by natfw::configuration::load().
std::string natfw::config_entry::str_value [private] |
Definition at line 107 of file configuration.h.
Referenced by natfw::configuration::dump().
type_t natfw::config_entry::type [private] |
Definition at line 100 of file configuration.h.
Referenced by natfw::configuration::configuration(), and natfw::configuration::dump().