Lightweight TagValue wrapper for generated messages.
More...
#include <B2BITS_CmeMdpFIX.h>
Lightweight TagValue wrapper for generated messages.
template<class M >
Cme::Mdp::TagValue::TagValue |
( |
const M & |
msg | ) |
|
Constructor
- Parameters
-
msg | message or entry to wrap |
Cme::Mdp::TagValue::TagValue |
( |
const TagValue & |
| ) |
|
template<class T >
T Cme::Mdp::TagValue::get |
( |
int |
tag | ) |
const |
Template getter
- Parameters
-
tag | Tag number of the group. |
- Returns
- Field value
- Exceptions
-
std::exception | if tag is not present in the message or is not convertible to return type |
Decimal Cme::Mdp::TagValue::getAsDecimal |
( |
int |
tag | ) |
const |
int32_t Cme::Mdp::TagValue::getAsInt32 |
( |
int |
tag | ) |
const |
int64_t Cme::Mdp::TagValue::getAsInt64 |
( |
int |
tag | ) |
const |
MonthYear Cme::Mdp::TagValue::getAsMonthYear |
( |
int |
tag | ) |
const |
StringRef Cme::Mdp::TagValue::getAsString |
( |
int |
tag | ) |
const |
uint32_t Cme::Mdp::TagValue::getAsUInt32 |
( |
int |
tag | ) |
const |
uint64_t Cme::Mdp::TagValue::getAsUInt64 |
( |
int |
tag | ) |
const |
const Group Cme::Mdp::TagValue::getGroup |
( |
int |
tag | ) |
const |
- Parameters
-
tag | Tag number of the group. |
- Returns
- repeating group wrapper
- Exceptions
-
std::exception | if group is not supported by the message |
- Returns
- message semantic type
bool Cme::Mdp::TagValue::hasValue |
( |
int |
tag | ) |
const |
- Parameters
-
tag | Tag number of the field to verify. |
- Returns
- "true" if message contains the tag
bool Cme::Mdp::TagValue::isSupported |
( |
int |
tag | ) |
const |
Verifies if tag is supported by the message
- Parameters
-
tag | Tag number of the field to verify. |
- Returns
- "true" if tag is supported
std::ostream& Cme::Mdp::TagValue::toString |
( |
std::ostream & |
os, |
|
|
const char * |
delim = "\x01" |
|
) |
| const |
Transform message into textual FIX representation
- Parameters
-
os | std::ostream to write the output |
delim | Delimeter, SOH(0x01) by default |
- Returns
- passed std::ostream