#include <OnixS/Eurex/MarketData/FieldValueRef.h>
Implements concept of a read-only reference to a FIX field value.
Definition at line 38 of file FieldValueRef.h.
◆ FieldValueRef() [1/2]
◆ FieldValueRef() [2/2]
Shallow copy from another one.
◆ operator bool()
Indicated whether the instance refers to a valid value.
◆ operator std::string()
| operator std::string |
( |
| ) |
const |
|
inline |
Return string presentation of the value being referenced.
Definition at line 198 of file FieldValueRef.h.
◆ operator!=() [1/2]
Compares with another instance for inequality.
◆ operator!=() [2/2]
Compares string presentation for equality with given text reference.
◆ operator=()
Updates instance to refer to another field value.
- Warning
- Does NOT perform deep copy of field values. Just updates reference to point to value of other field.
◆ operator==() [1/2]
Compares with another instance for equality.
◆ operator==() [2/2]
Compares string presentation for equality with given text reference.
◆ swap()
◆ toChar()
| bool toChar |
( |
char & | | ) |
const |
If value represent one-char text, copies it into given variable.
- Returns
- false if conversion fails (for example, stored value is whole number assigned to a field using OnixS::FIX::FieldSet::setV member).
- Warning
- Due to performance considerations doesn't check whether instance refers to a valid value. Use OnixS::FIX::FieldValueRef::operator bool() member to check instance for a validness.
◆ toGroup()
| bool toGroup |
( |
Group & | | ) |
const |
If repeating group is associated with field, allows to get instance of it.
- Returns
- false if no group is associated with field.
- Warning
- Due to performance considerations doesn't check whether instance refers to a valid value. Use OnixS::FIX::FieldValueRef::operator bool() member to check instance for a validness.
◆ toNumber() [1/5]
Converts field value into floating point value.
- Returns
- false if conversion fails.
- Warning
- Due to performance considerations doesn't check whether instance refers to a valid value. Use OnixS::FIX::FieldValueRef::operator bool() member to check instance for a validness.
◆ toNumber() [2/5]
| bool toNumber |
( |
Int32 & | | ) |
const |
Converts field value into whole number.
- Returns
- false if conversion fails.
- Warning
- Due to performance considerations doesn't check whether instance refers to a valid value. Use OnixS::FIX::FieldValueRef::operator bool() member to check instance for a validness.
◆ toNumber() [3/5]
| bool toNumber |
( |
Int64 & | | ) |
const |
Converts field value into whole number.
- Returns
- false if conversion fails.
- Warning
- Due to performance considerations doesn't check whether instance refers to a valid value. Use OnixS::FIX::FieldValueRef::operator bool() member to check instance for a validness.
◆ toNumber() [4/5]
| bool toNumber |
( |
UInt32 & | | ) |
const |
Converts field value into whole number.
- Returns
- false if conversion fails.
- Warning
- Due to performance considerations doesn't check whether instance refers to a valid value. Use OnixS::FIX::FieldValueRef::operator bool() member to check instance for a validness.
◆ toNumber() [5/5]
| bool toNumber |
( |
UInt64 & | | ) |
const |
Converts field value into whole number.
- Returns
- false if conversion fails.
- Warning
- Due to performance considerations doesn't check whether instance refers to a valid value. Use OnixS::FIX::FieldValueRef::operator bool() member to check instance for a validness.
◆ toString() [1/2]
| std::string toString |
( |
| ) |
const |
|
inline |
Return string presentation of field value.
Definition at line 210 of file FieldValueRef.h.
◆ toString() [2/2]
| void toString |
( |
std::string & | | ) |
const |
Appends copy of text presentation to the std::string.
◆ toStringRef()
If value represents text, returns reference to it.
- Returns
- false if conversion fails (for example, stored value is whole number assigned to a field using OnixS::FIX::FieldSet::setV member).
- Warning
- Due to performance considerations doesn't check whether instance refers to a valid value. Use OnixS::FIX::FieldValueRef::operator bool() member to check instance for a validness.
◆ toTimestamp()
Converts field value into timestamp of requested format.
- Returns
- false if conversion fails.
- Warning
- Due to performance considerations doesn't check whether instance refers to a valid value. Use OnixS::FIX::FieldValueRef::operator bool() member to check instance for a validness.
◆ MessageOperator
| friend class MessageOperator |
|
friend |