OnixS C++ Eurex T7 Market and Reference Data (EMDI, MDI, RDI, EOBI) Handlers 18.2.0
API documentation
Loading...
Searching...
No Matches
Message Class Reference

Public Member Functions

 Message (const Message &other)
 ~Message ()
FieldValueRef type () const
SequenceNumber seqNum () const
FieldValueRef senderCompId () const
bool operator== (const Message &) const
bool operator!= (const Message &) const
std::string toString (char delimiter=0x1, MessageStringingFlags flags=MessageStringingFlag::IncludeFieldTagNumber) const
std::string toStringWithFieldNames () const
void toString (std::string &str, char delimiter=0x1, MessageStringingFlags flags=MessageStringingFlag::IncludeFieldTagNumber) const
Messageoperator= (const Message &)
Public Member Functions inherited from FieldSet
 operator bool () const
FieldValueRef get (Tag tag) const
Int32 getInt32 (Tag tag) const
UInt32 getUInt32 (Tag tag) const
Int64 getInt64 (Tag tag) const
UInt64 getUInt64 (Tag tag) const
Decimal getDecimal (Tag tag) const
StringRef getStringRef (Tag tag) const
Timestamp getTimestamp (Tag tag, TimestampFormat::Enum=TimestampFormat::YYYYMMDDHHMMSSNsec) const
Group getGroup (Tag numberOfInstancesTag) const
Group getOptionalGroup (Tag numberOfInstancesTag) const
bool hasFlag (Tag tag) const
size_t fields (Fields &fields) const
void swap (FieldSet &) throw ()

Friends

class MessageOperator
class ProductSnapshot
class InstrumentSnapshot
class InstrumentIncremental
class VarianceFuturesStatus
class TotalReturnFuturesStatus
class TradeAtReferencePriceStatus
class DepthSnapshot
class DepthIncremental
class ProductStateChange
class MassInstrumentStateChange
class InstrumentStateChange
class QuoteRequest
class CrossRequest
class ComplexInstrumentUpdate
class FlexibleInstrumentUpdate
class ScaledSimpleInstrumentUpdate
class OpenInterest
class Settlement
class ExchangeTrade
class TopOfBookImplied

Additional Inherited Members

Protected Member Functions inherited from FieldSet
 FieldSet ()
 FieldSet (const Message *, void *)
 FieldSet (const FieldSet &)
 ~FieldSet ()
FieldSetoperator= (const FieldSet &)
Protected Attributes inherited from FieldSet
const Messagecontainer_
void * impl_

Detailed Description

Encapsulates operations over a FIX Message.

Message supports 'unconstructed' state which can be treated as pointer in null state. However, in contrast to OnixS::FIX::Group and OnixS::FIX::GroupInstance classes it does NOT represent light-weight wrapper over internal structures. In fact, it holds all the data which is fully copied on assignment or copy construction and disposed at instance destruction.

FIX field related operations now available via OnixS::FIX::FieldSet class from which OnixS::FIX::Message class is now derived.

Definition at line 61 of file Message.h.

Constructor & Destructor Documentation

◆ Message()

Message ( const Message & other)

Initializes instance as deep copy of other one.

Parameters
otherMessage to be copied from.

◆ ~Message()

~Message ( )

Disposes all internal data structures.

Warning
Once instance is destructed, all instances of OnixS::FIX::Group and OnixS::FIX::GroupInstance classes obtained from this instance must not be used any more.

Member Function Documentation

◆ operator!=()

bool operator!= ( const Message & ) const

Compares two messages. Comparison is performed using 'tag=value' message presentations.

◆ operator=()

Message & operator= ( const Message & )

◆ operator==()

bool operator== ( const Message & ) const

Compares two messages. Comparison is performed using 'tag=value' message presentations.

◆ senderCompId()

FieldValueRef senderCompId ( ) const

Returns the assigned value used to identify firm sending message (SenderCompID (49) field value).

◆ seqNum()

SequenceNumber seqNum ( ) const

Returns the message sequence number (the MsgSeqNum (tag=34) field value).

◆ toString() [1/2]

std::string toString ( char delimiter = 0x1,
MessageStringingFlags flags = MessageStringingFlag::IncludeFieldTagNumber ) const
inline

Returns the string representation of the message using the given delimiter and additional control flags.

Parameters
delimiterDefines field delimiter to be used.
flagsAffect how message presentation looks like.

Definition at line 176 of file Message.h.

◆ toString() [2/2]

void toString ( std::string & str,
char delimiter = 0x1,
MessageStringingFlags flags = MessageStringingFlag::IncludeFieldTagNumber ) const

Appends string representation of the message using the given delimiter and additional control flags.

Parameters
strString to which presentation is appended.
delimiterDefines field delimiter to be used.
flagsAffect how message presentation looks like.

◆ toStringWithFieldNames()

std::string toStringWithFieldNames ( ) const
inline

Returns the string representation of the message with field names using 0x1 delimiter.

Definition at line 111 of file Message.h.

◆ type()

FieldValueRef type ( ) const

Returns the message type (MsgType(35) field value).

◆ ComplexInstrumentUpdate

friend class ComplexInstrumentUpdate
friend

Definition at line 151 of file Message.h.

◆ CrossRequest

friend class CrossRequest
friend

Definition at line 150 of file Message.h.

◆ DepthIncremental

friend class DepthIncremental
friend

Definition at line 145 of file Message.h.

◆ DepthSnapshot

friend class DepthSnapshot
friend

Definition at line 144 of file Message.h.

◆ ExchangeTrade

friend class ExchangeTrade
friend

Definition at line 157 of file Message.h.

◆ FlexibleInstrumentUpdate

friend class FlexibleInstrumentUpdate
friend

Definition at line 152 of file Message.h.

◆ InstrumentIncremental

friend class InstrumentIncremental
friend

Definition at line 139 of file Message.h.

◆ InstrumentSnapshot

friend class InstrumentSnapshot
friend

Definition at line 138 of file Message.h.

◆ InstrumentStateChange

friend class InstrumentStateChange
friend

Definition at line 148 of file Message.h.

◆ MassInstrumentStateChange

friend class MassInstrumentStateChange
friend

Definition at line 147 of file Message.h.

◆ MessageOperator

friend class MessageOperator
friend

Definition at line 135 of file Message.h.

◆ OpenInterest

friend class OpenInterest
friend

Definition at line 155 of file Message.h.

◆ ProductSnapshot

friend class ProductSnapshot
friend

Definition at line 137 of file Message.h.

◆ ProductStateChange

friend class ProductStateChange
friend

Definition at line 146 of file Message.h.

◆ QuoteRequest

friend class QuoteRequest
friend

Definition at line 149 of file Message.h.

◆ ScaledSimpleInstrumentUpdate

friend class ScaledSimpleInstrumentUpdate
friend

Definition at line 153 of file Message.h.

◆ Settlement

friend class Settlement
friend

Definition at line 156 of file Message.h.

◆ TopOfBookImplied

friend class TopOfBookImplied
friend

Definition at line 159 of file Message.h.

◆ TotalReturnFuturesStatus

friend class TotalReturnFuturesStatus
friend

Definition at line 141 of file Message.h.

◆ TradeAtReferencePriceStatus

friend class TradeAtReferencePriceStatus
friend

Definition at line 142 of file Message.h.

◆ VarianceFuturesStatus

friend class VarianceFuturesStatus
friend

Definition at line 140 of file Message.h.