OnixS CME Drop Copy Handler C++ library  5.7.1
API documentation
Message Class Reference

#include <OnixS/CME/DropCopy/Messaging.h>

Public Member Functions

 Message ()
 
 Message (const Message &other)
 
 ~Message ()
 
FieldValueRef type () const
 
SequenceNumber sequenceNumber () const
 
Timestamp sendingTime () const
 
const TimestampreceiveTime () const
 
std::string toString (char delimiter=0x1) const
 
void toString (std::string &str, char delimiter=0x1) const
 
Messageoperator= (const Message &)
 
- Public Member Functions inherited from FieldSet
 operator bool () const
 
FieldValueRef get (Tag tag) const
 
char getChar (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, SinceEpochUnit unit) const
 
Group getGroup (Tag tag) const
 
Group getOptionalGroup (Tag tag, bool strict=true) const
 
bool hasFlag (Tag tag) const
 
bool contain (Tag tag) const
 

Friends

class MessageOperator
 

Additional Inherited Members

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

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 Group and 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 FieldSet class from which Message class is now derived.

Definition at line 633 of file Messaging.h.

Constructor & Destructor Documentation

Message ( )

Initializes message in 'unconstructed' state.

Message ( const Message other)

Initializes instance as deep copy of other one.

Parameters
otherMessage to be copied from.
~Message ( )

Disposes all internal data structures.

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

Member Function Documentation

Message& operator= ( const Message )
const Timestamp& receiveTime ( ) const

Indicates time when packet holding given message was received.

Timestamp sendingTime ( ) const

Returns the Sending Time field from CME binary packet header. Please note: this field is attributed to packet, not message. Packet can contain several messages, so they will share same sending time.

SequenceNumber sequenceNumber ( ) const

Returns the MsgSeqNum field from CME binary packet header. Please note: this field is attributed to packet, not message. Packet can contain several messages, so they will share same sequence number.

std::string toString ( char  delimiter = 0x1) const
inline

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

Parameters
delimiterDefines field delimiter to be used.

Definition at line 694 of file Messaging.h.

void toString ( std::string &  str,
char  delimiter = 0x1 
) 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.
FieldValueRef type ( ) const

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

Friends And Related Function Documentation

friend class MessageOperator
friend

Definition at line 685 of file Messaging.h.


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