#include <OnixS/B3/BOE/TcpDirectAttr.h>
Public Member Functions | |
TcpDirectAttr () | |
~TcpDirectAttr () | |
TcpDirectAttr (const TcpDirectAttr &other) | |
TcpDirectAttr & | operator= (const TcpDirectAttr &other) |
std::string | getString (const std::string &name) |
void | set (const std::string &name, const std::string &value) |
int64_t | getInt (const std::string &name) |
void | set (const std::string &name, uint64_t value) |
Friends | |
class | TcpDirectStack |
The default values for attributes may be overridden by setting the environment variable ZF_ATTR
. For example:
Definition at line 44 of file TcpDirectAttr.h.
TcpDirectAttr | ( | ) |
Allocates an attribute object.
std::bad_alloc | if memory could not be allocated. |
std::runtime_error | if the ZF_ATTR environment variable is malformed. |
~TcpDirectAttr | ( | ) |
TcpDirectAttr | ( | const TcpDirectAttr & | other | ) |
int64_t getInt | ( | const std::string & | name | ) |
Gets an integer attribute.
name | Name of the attribute. |
std::logic_error | If name is not a valid attribute name or if name does not have an integer type. |
std::string getString | ( | const std::string & | name | ) |
Gets a string attribute.
name | Name of the attribute. |
std::logic_error | If name is not a valid attribute name or if name does not have a string type. |
TcpDirectAttr& operator= | ( | const TcpDirectAttr & | other | ) |
void set | ( | const std::string & | name, |
const std::string & | value | ||
) |
Sets the attribute to the given value.
name | Name of the attribute. |
value | New value for the attribute (may be NULL). |
std::logic_error | If name is not a valid attribute name or if the attribute is not a string attribute. |
void set | ( | const std::string & | name, |
uint64_t | value | ||
) |
Sets the attribute to the given value.
name | Name of the attribute. |
value | New value for the attribute. |
std::logic_error | If name is not a valid attribute name. |
std::domain_error | If value is not within the range of values this attribute can take. |
|
friend |
Definition at line 99 of file TcpDirectAttr.h.