#include <b2bits/fix/TagValue.h>
B2bits::MD::TagValue::TagValue |
( |
| ) |
|
|
inlineprotected |
bool B2bits::MD::TagValue::get |
( |
int |
tag, |
|
|
FIXFieldValue * |
value |
|
) |
| const |
Retrieves field value by tag number and stores it into instance of FIXFieldValue class.
- Parameters
-
[out] | value | pointer to the FIXFieldValue object to store data. Cannot be NULL. |
| tag | Tag number of field requested field value. |
- Returns
- "true" if requested field exists in message, "false" if requested field does not exist.
- Exceptions
-
std:exception | if requested field is not defined by FIX protocol for this message type. |
bool B2bits::MD::TagValue::get |
( |
int |
tag, |
|
|
std::string * |
value |
|
) |
| const |
Returns true if field is not empty, false otherwise.
- Parameters
-
[in] | tag | Tag of the field. |
[out] | value | Value of the field. |
bool B2bits::MD::TagValue::getAsBool |
( |
int |
tag | ) |
const |
|
inline |
Returns field value. Synonym of Engine::TagValue::getAsBoolean
- Parameters
-
bool B2bits::MD::TagValue::getAsBoolean |
( |
int |
tag | ) |
const |
Returns field value.
- Parameters
-
char B2bits::MD::TagValue::getAsChar |
( |
int |
tag | ) |
const |
Returns field value.
- Parameters
-
UTCDateOnly B2bits::MD::TagValue::getAsDateOnly |
( |
int |
tag | ) |
const |
Returns field value.
- Parameters
-
Decimal B2bits::MD::TagValue::getAsDecimal |
( |
int |
tag | ) |
const |
Returns field value.
- Parameters
-
double B2bits::MD::TagValue::getAsDouble |
( |
int |
tag | ) |
const |
Returns field value.
- Parameters
-
const FIXGroup B2bits::MD::TagValue::getAsGroup |
( |
int |
tag | ) |
const |
|
inline |
int B2bits::MD::TagValue::getAsInt |
( |
int |
tag | ) |
const |
Returns field value.
- Parameters
-
i32 B2bits::MD::TagValue::getAsInt32 |
( |
int |
tag | ) |
const |
Returns field value.
- Parameters
-
i64 B2bits::MD::TagValue::getAsInt64 |
( |
int |
tag | ) |
const |
Returns field value.
- Parameters
-
LocalMktDate B2bits::MD::TagValue::getAsLocalMktDate |
( |
int |
tag | ) |
const |
Returns field value.
- Parameters
-
MonthYear B2bits::MD::TagValue::getAsMonthYear |
( |
int |
tag | ) |
const |
Returns field value.
- Parameters
-
MultipleChar B2bits::MD::TagValue::getAsMultipleChar |
( |
int |
tag | ) |
const |
Returns field value.
- Parameters
-
MultipleString B2bits::MD::TagValue::getAsMultipleString |
( |
int |
tag | ) |
const |
Returns field value.
- Parameters
-
ByteArray B2bits::MD::TagValue::getAsRaw |
( |
int |
tag | ) |
const |
Returns field value.
- Parameters
-
AsciiString B2bits::MD::TagValue::getAsString |
( |
int |
tag | ) |
const |
Returns field value.
- Parameters
-
UTCTimeOnly B2bits::MD::TagValue::getAsTimeOnly |
( |
int |
tag | ) |
const |
Returns field value.
- Parameters
-
UTCTimestamp B2bits::MD::TagValue::getAsTimestamp |
( |
int |
tag | ) |
const |
Returns field value.
- Parameters
-
unsigned int B2bits::MD::TagValue::getAsUInt |
( |
int |
tag | ) |
const |
Returns field value.
- Parameters
-
u32 B2bits::MD::TagValue::getAsUInt32 |
( |
int |
tag | ) |
const |
Returns field value.
- Parameters
-
u64 B2bits::MD::TagValue::getAsUInt64 |
( |
int |
tag | ) |
const |
Returns field value.
- Parameters
-
const FIXGroup B2bits::MD::TagValue::getGroup |
( |
int |
tag | ) |
const |
Returns the repeating group instance by leading field tag number. The FIXGroup instance's memory is managed by FIX Engine. FIXGroup instance is guaranteed to exist within it's parent FIXMessage's lifetime or until trimming to zero length.
- Parameters
-
tag | Tag number of the leading field value. |
- Returns
- Returns the repeating group instance by leading field tag number. If leading field value is empty or its numerical represntaion is zero, then returned value is NULL.
- Exceptions
-
std:exception | if requested group not defined this message type. |
bool B2bits::MD::TagValue::hasFlag |
( |
int |
tag | ) |
const |
Checks boolean field
- Parameters
-
tag | Tag number of the field to verify. |
- Returns
- "true" if the given flag is present and it equals to "Y", otherwise "false".
bool B2bits::MD::TagValue::hasValue |
( |
int |
tag | ) |
const |
Returns true if value is defined; false otherwise.
- Exceptions
-
std:exception | is given field is not defined for this entry. |
bool B2bits::MD::TagValue::isEmpty |
( |
int |
tag | ) |
const |
Returns true if value of the field is empty; false otherwise.
- Exceptions
-
std:exception | is given field is not defined for this entry. |
bool B2bits::MD::TagValue::isEqual |
( |
int |
tag, |
|
|
TagValue const & |
rv, |
|
|
int |
rvTag |
|
) |
| const |
Compares values of the fields
bool B2bits::MD::TagValue::isNull |
( |
| ) |
const |
|
inline |
Returns true if underlying is null
- Returns
- true if underlying is null
bool B2bits::MD::TagValue::isSupported |
( |
int |
tag | ) |
const |
Verifies is field acceptable in the message
- Parameters
-
tag | Tag number of the field to verify. |
- Returns
- "true" if field supported by this message, otherwise returns false.
void B2bits::MD::TagValue::write |
( |
int |
tag, |
|
|
std::ostream & |
stream |
|
) |
| const |
Writes field value to the stream
- Parameters
-
[in] | tag | Tag of the field. |
[out] | stream | Output stream to write field value to. |