#include <OnixS/FIXEngine/FIX/TcpDirectAttr.h>
The default values for attributes may be overridden by setting the environment variable ZF_Attributes. For example:
1 ZF_Attributes="interface=enp4s0f0;log_level=3;reactor_spin_count=1"
Definition at line 40 of file TcpDirectAttr.h.
Allocate an attribute object.
- Exceptions
-
The | std::bad_alloc is thrown if the memory could not be allocated. |
The | std::runtime_error if the ZF_Attributes environment variable is malformed. |
int64_t getInt |
( |
const std::string & |
name | ) |
|
Gets the attribute value.
- Parameters
-
name | The name of the attribute. |
- Exceptions
-
The | std::logic_error is thrown if the name is not a valid attribute name or if the name does not have an integer type. |
std::string getString |
( |
const std::string & |
name | ) |
|
Gets the attribute value.
- Parameters
-
name | The name of the attribute. |
- Exceptions
-
The | std::logic_error is thrown if the name is not a valid attribute name or if the name does not have a string type. |
void networkInterface |
( |
const std::string & |
ifName | ) |
|
|
inline |
void set |
( |
const std::string & |
name, |
|
|
const std::string & |
value |
|
) |
| |
Sets an attribute to a string value.
- Parameters
-
name | The name of the attribute. |
value | The new value for the attribute. |
- Exceptions
-
The | std::logic_error is thrown if the 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 an attribute to an integer value.
- Parameters
-
name | The name of the attribute. |
value | The new value for the attribute. |
- Exceptions
-
The | std::logic_error is thrown if the name is not a valid attribute name. |
The | std::domain_error is thrown if the value is not within the range of values this attribute can take. |
The documentation for this class was generated from the following file: