OnixS C++ CME MDP Conflated TCP Handler  1.3.1
API Documentation
MessageHolder< MessageTypeT, MaxMessageSize, MessageInitializer > Class Template Reference

#include <OnixS/CME/ConflatedTCP/messaging/MessageHolder.h>

Public Types

enum  { BufferSize = MaxMessageSize + sizeof(SimpleOpenFramingHeader) }
 
typedef HeldAdapter< MessageTypeT > MessageType
 

Public Member Functions

 MessageHolder (SchemaVersion version=SbeType::Schema::Version)
 
 MessageHolder (const MessageHolder &r)
 
MessageHolderoperator= (const MessageHolder &r)
 
const unsigned char * buffer () const noexcept
 
UInt16 bufferSize () const noexcept
 
MessageTypemessage () noexcept
 
const MessageTypemessage () const noexcept
 
UInt16 messageSize () const noexcept
 
MessageTypeoperator-> () noexcept
 
const MessageTypeoperator-> () const noexcept
 
const MessageTypeoperator* () const noexcept
 
MessageTypeoperator* () noexcept
 
const SimpleOpenFramingHeaderheader () const noexcept
 
SimpleOpenFramingHeaderheader () noexcept
 
MessageSize setHeader () noexcept
 
std::string toString () const
 

Detailed Description

template<typename MessageTypeT, size_t MaxMessageSize = GetMaxMessageSize<typename HeldAdapter<MessageTypeT>::SbeType, DefaultMaxGroupItems>::Size, typename MessageInitializer = FieldsInitPolicy>
class OnixS::CME::ConflatedTCP::Messaging::MessageHolder< MessageTypeT, MaxMessageSize, MessageInitializer >

Returns
a human-readable presentation.

Definition at line 125 of file MessageHolder.h.

Member Typedef Documentation

typedef HeldAdapter<MessageTypeT> MessageType

Message type.

Definition at line 184 of file MessageHolder.h.

Member Enumeration Documentation

anonymous enum

Size of the data buffer.

Enumerator
BufferSize 

Definition at line 187 of file MessageHolder.h.

Constructor & Destructor Documentation

MessageHolder ( SchemaVersion  version = SbeType::Schema::Version)
inlineexplicit

Definition at line 192 of file MessageHolder.h.

MessageHolder ( const MessageHolder< MessageTypeT, MaxMessageSize, MessageInitializer > &  r)
inline

Definition at line 203 of file MessageHolder.h.

Member Function Documentation

const unsigned char* buffer ( ) const
inlinenoexcept
Returns
the buffer.

Definition at line 215 of file MessageHolder.h.

UInt16 bufferSize ( ) const
inlinenoexcept
Returns
the used size of the buffer.

Definition at line 221 of file MessageHolder.h.

const SimpleOpenFramingHeader* header ( ) const
inlinenoexcept
Returns
Simple Open Framing Header

Definition at line 265 of file MessageHolder.h.

SimpleOpenFramingHeader* header ( )
inlinenoexcept
Returns
Simple Open Framing Header

Definition at line 271 of file MessageHolder.h.

MessageType& message ( )
inlinenoexcept
Returns
the SBE message.

Definition at line 227 of file MessageHolder.h.

const MessageType& message ( ) const
inlinenoexcept
Returns
the SBE message.

Definition at line 233 of file MessageHolder.h.

UInt16 messageSize ( ) const
inlinenoexcept
Returns
the SBE message size

Definition at line 239 of file MessageHolder.h.

const MessageType& operator* ( ) const
inlinenoexcept

Definition at line 254 of file MessageHolder.h.

MessageType& operator* ( )
inlinenoexcept

Definition at line 259 of file MessageHolder.h.

MessageType* operator-> ( )
inlinenoexcept

Definition at line 244 of file MessageHolder.h.

const MessageType* operator-> ( ) const
inlinenoexcept

Definition at line 249 of file MessageHolder.h.

MessageHolder& operator= ( const MessageHolder< MessageTypeT, MaxMessageSize, MessageInitializer > &  r)
inline

Definition at line 208 of file MessageHolder.h.

MessageSize setHeader ( )
inlinenoexcept

Calculates the binary size of the message and updates the Simple Open Framing Header accordingly.

Returns
SBE message size

Definition at line 280 of file MessageHolder.h.

std::string toString ( ) const
inline
Returns
a human-readable presentation.

Definition at line 299 of file MessageHolder.h.


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