OnixS C++ B3 BOE Binary Order Entry  1.2.0
API Documentation
MessageHolder< MessageTypeT, MaxMessageSize, MessageInitializer > Class Template Reference

#include <OnixS/B3/BOE/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 Session &session)
 
 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
 
NetworkMessage toNetworkMessage () 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::B3::BOE::Messaging::MessageHolder< MessageTypeT, MaxMessageSize, MessageInitializer >

Returns
a human-readable presentation.

Definition at line 142 of file MessageHolder.h.

Member Typedef Documentation

typedef HeldAdapter<MessageTypeT> MessageType

Message type.

Definition at line 201 of file MessageHolder.h.

Member Enumeration Documentation

anonymous enum

Size of the data buffer.

Enumerator
BufferSize 

Definition at line 204 of file MessageHolder.h.

Constructor & Destructor Documentation

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

Definition at line 209 of file MessageHolder.h.

MessageHolder ( const Session session)
inlineexplicit

Definition at line 214 of file MessageHolder.h.

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

Definition at line 219 of file MessageHolder.h.

Member Function Documentation

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

Definition at line 231 of file MessageHolder.h.

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

Definition at line 237 of file MessageHolder.h.

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

Definition at line 281 of file MessageHolder.h.

SimpleOpenFramingHeader* header ( )
inlinenoexcept
Returns
Simple Open Framing Header

Definition at line 287 of file MessageHolder.h.

MessageType& message ( )
inlinenoexcept
Returns
the SBE message.

Definition at line 243 of file MessageHolder.h.

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

Definition at line 249 of file MessageHolder.h.

UInt16 messageSize ( ) const
inlinenoexcept
Returns
the SBE message size

Definition at line 255 of file MessageHolder.h.

const MessageType& operator* ( ) const
inlinenoexcept

Definition at line 270 of file MessageHolder.h.

MessageType& operator* ( )
inlinenoexcept

Definition at line 275 of file MessageHolder.h.

MessageType* operator-> ( )
inlinenoexcept

Definition at line 260 of file MessageHolder.h.

const MessageType* operator-> ( ) const
inlinenoexcept

Definition at line 265 of file MessageHolder.h.

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

Definition at line 224 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 296 of file MessageHolder.h.

NetworkMessage toNetworkMessage ( )
inlinenoexcept

Definition at line 314 of file MessageHolder.h.

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

Definition at line 326 of file MessageHolder.h.


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