OnixS C++ CME Market Data Handler  5.4.0
API documentation
Message Class Reference

#include <OnixS/CME/MDH/FIX/Message.h>

Public Member Functions

 Message ()
 
 Message (const Message &other)
 
 operator bool () const
 
StrRef type () const
 
Field operator[] (Tag tag) const
 
Field field (Tag tag) const
 
Group group (Tag tag) const
 
void toFix (std::string &str) const
 
Messageoperator= (const Message &other)
 

Protected Member Functions

 Message (const BinaryMessage &binary, const MessageAccessor &accessor)
 

Detailed Description

Implements FIX-like interface over the SBE-encoded message.

Definition at line 267 of file Message.h.

Constructor & Destructor Documentation

Message ( const BinaryMessage binary,
const MessageAccessor accessor 
)
inlineprotected

Initializes the instance from the SBE-encoded message.

Definition at line 275 of file Message.h.

Message ( )
inline

Initializes the message which refers to nothing and thus being a null-instance.

Definition at line 285 of file Message.h.

Message ( const Message other)
inline

Initializes as the copy of the other instance.

Definition at line 292 of file Message.h.

Member Function Documentation

Field field ( Tag  tag) const
inlinevirtual

Returns a field by its tag.

If the message contains a field with the requested tag, then the returned instance of the Field class refers to a valid data and thus further manipulations with its value are possible. Otherwise, the returned instance refers to nothing.

Implements FieldSet.

Definition at line 336 of file Message.h.

Group group ( Tag  tag) const
inline

Accesses a repeating group by its tag.

Returns a null instance if the requested group is not available in the given message.

Definition at line 347 of file Message.h.

operator bool ( ) const
inline

Indicates whether the instance refers to a valid message.

Definition at line 300 of file Message.h.

Message& operator= ( const Message other)
inline

Re-initializes as the copy of the other instance.

Definition at line 366 of file Message.h.

Field operator[] ( Tag  tag) const
inline

Returns a field by its tag.

If the message contains a field with the requested tag, then the returned instance of the Field class refers to a valid data and thus further manipulations with its value are possible. Otherwise, the returned instance refers to nothing.

Definition at line 322 of file Message.h.

void toFix ( std::string &  str) const
inline

Builds the FIX (tag=value) representation.

Definition at line 356 of file Message.h.

StrRef type ( ) const
inline

FIX message type.

Definition at line 306 of file Message.h.


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