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

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

Public Member Functions

SequenceNumber seqNumber () const noexcept
void seqNumber (SequenceNumber value) noexcept
Messaging::Timestamp sendingTime () const noexcept
void sendingTime (Messaging::Timestamp value) noexcept
std::string toString () const

Detailed Description

Note
The implicitly generated default constructor leaves the header values uninitialized. Set the values or populate the object from packet data before reading them.

Definition at line 77 of file PacketTraits.h.

Member Function Documentation

◆ sendingTime() [1/2]

Messaging::Timestamp sendingTime ( ) const
inlinenoexcept

Gets the packet sending time.

Returns
Timestamp at which the packet was sent.

Definition at line 101 of file PacketTraits.h.

◆ sendingTime() [2/2]

void sendingTime ( Messaging::Timestamp value)
inlinenoexcept

Sets the packet sending time.

Parameters
valueTimestamp at which the packet was sent.

Definition at line 109 of file PacketTraits.h.

◆ seqNumber() [1/2]

SequenceNumber seqNumber ( ) const
inlinenoexcept

Gets the packet sequence number.

Returns
Sequence number assigned by MDP.

Definition at line 84 of file PacketTraits.h.

◆ seqNumber() [2/2]

void seqNumber ( SequenceNumber value)
inlinenoexcept

Sets the packet sequence number.

Parameters
valueSequence number assigned by MDP.

Definition at line 92 of file PacketTraits.h.

◆ toString()

std::string toString ( ) const
inline

Formats the packet header as a human-readable string.

Returns
Formatted representation of the packet header.
Exceptions
Anyexception thrown while formatting or allocating the returned string.

Definition at line 167 of file PacketTraits.h.