OnixS C++ Eurex T7 Market and Reference Data Interface (EMDI, RDI, EOBI) Handlers  7.4.2
API documentation
FieldValueRef Class Reference

#include <OnixS/Eurex/MarketData/FieldValueRef.h>

Public Member Functions

 FieldValueRef ()
 
 FieldValueRef (const FieldValueRef &other)
 
 operator bool () const
 
 operator std::string () const
 
bool operator== (const FieldValueRef &) const
 
bool operator!= (const FieldValueRef &) const
 
bool operator== (const StringRef &) const
 
bool operator!= (const StringRef &) const
 
bool toNumber (Int32 &) const
 
bool toNumber (UInt32 &) const
 
bool toNumber (Int64 &) const
 
bool toNumber (UInt64 &) const
 
bool toNumber (Decimal &) const
 
bool toTimestamp (Timestamp &, TimestampFormat::Enum=TimestampFormat::YYYYMMDDHHMMSSNsec) const
 
bool toStringRef (StringRef &) const
 
bool toChar (char &) const
 
bool toGroup (Group &) const
 
void toString (std::string &) const
 
std::string toString () const
 
FieldValueRefoperator= (const FieldValueRef &)
 
void swap (FieldValueRef &) throw ()
 

Friends

class MessageOperator
 

Detailed Description

Implements concept of a read-only reference to a FIX field value.

Definition at line 38 of file FieldValueRef.h.

Constructor & Destructor Documentation

Uninitialized value.

Definition at line 42 of file FieldValueRef.cpp.

FieldValueRef ( const FieldValueRef other)

Shallow copy from another one.

Definition at line 36 of file FieldValueRef.cpp.

Member Function Documentation

operator bool ( ) const

Indicated whether the instance refers to a valid value.

Definition at line 69 of file FieldValueRef.cpp.

operator std::string ( ) const
inline

Return string presentation of the value being referenced.

Definition at line 199 of file FieldValueRef.h.

bool operator!= ( const FieldValueRef other) const

Compares with another instance for inequality.

Definition at line 239 of file FieldValueRef.cpp.

bool operator!= ( const StringRef other) const

Compares string presentation for equality with given text reference.

Definition at line 256 of file FieldValueRef.cpp.

FieldValueRef & operator= ( const FieldValueRef other)

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.

Definition at line 56 of file FieldValueRef.cpp.

bool operator== ( const FieldValueRef other) const

Compares with another instance for equality.

Definition at line 231 of file FieldValueRef.cpp.

bool operator== ( const StringRef other) const

Compares string presentation for equality with given text reference.

Definition at line 248 of file FieldValueRef.cpp.

void swap ( FieldValueRef other)
throw (
)

Definition at line 49 of file FieldValueRef.cpp.

bool toChar ( char &  value) 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.

Definition at line 203 of file FieldValueRef.cpp.

bool toGroup ( Group value) 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.

Definition at line 209 of file FieldValueRef.cpp.

bool toNumber ( Int32 number) 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.

Definition at line 76 of file FieldValueRef.cpp.

bool toNumber ( UInt32 number) 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.

Definition at line 82 of file FieldValueRef.cpp.

bool toNumber ( Int64 &  number) 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.

Definition at line 88 of file FieldValueRef.cpp.

bool toNumber ( UInt64 &  number) 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.

Definition at line 103 of file FieldValueRef.cpp.

bool toNumber ( Decimal number) const

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.

Definition at line 119 of file FieldValueRef.cpp.

void toString ( std::string &  str) const

Appends copy of text presentation to the std::string.

Definition at line 225 of file FieldValueRef.cpp.

std::string toString ( ) const
inline

Return string presentation of field value.

Definition at line 210 of file FieldValueRef.h.

bool toStringRef ( StringRef value) const

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.

Definition at line 188 of file FieldValueRef.cpp.

bool toTimestamp ( Timestamp timestamp,
TimestampFormat::Enum  timestampFormat = TimestampFormat::YYYYMMDDHHMMSSNsec 
) const

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.

Definition at line 135 of file FieldValueRef.cpp.

Friends And Related Function Documentation

friend class MessageOperator
friend

Definition at line 186 of file FieldValueRef.h.


The documentation for this class was generated from the following files: