OnixS C++ CME MDP Premium Market Data Handler 5.11.1
Users' manual and API documentation
Loading...
Searching...
No Matches
MessagePrefix Class Reference

#include <OnixS/CME/MDH/PacketTraits.h>

Public Member Functions

Messaging::MessageSize messageSize () const noexcept
void messageSize (Messaging::MessageSize value) noexcept
std::string toString () const

Detailed Description

Note
The implicitly generated default constructor leaves the prefix value uninitialized. Set the value or populate the object from packet data before reading it.

Definition at line 43 of file PacketTraits.h.

Member Function Documentation

◆ messageSize() [1/2]

Messaging::MessageSize messageSize ( ) const
inlinenoexcept

Gets the total message size, including its binary header.

Returns
Message size in bytes.

Definition at line 50 of file PacketTraits.h.

◆ messageSize() [2/2]

void messageSize ( Messaging::MessageSize value)
inlinenoexcept

Sets the total message size, including its binary header.

Parameters
valueMessage size in bytes.

Definition at line 58 of file PacketTraits.h.

◆ toString()

std::string toString ( ) const
inline

Formats the message prefix as a human-readable string.

Returns
Formatted representation of the message prefix.
Exceptions
Anyexception thrown while formatting or allocating the returned string.

Definition at line 162 of file PacketTraits.h.