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

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

Public Types

using Header = PacketHeader

Public Member Functions

 Packet () noexcept
 Packet (const void *data, PacketSize size)
 Packet (const void *data, PacketSize size, const NoVerify &) noexcept
 Packet (const Packet &other) noexcept
 ~Packet ()=default
 operator bool () const noexcept
const void * data () const noexcept
const Headerheader () const noexcept
PacketSize size () const noexcept
SequenceNumber seqNumber () const noexcept
Messaging::Timestamp sendingTime () const noexcept
BinaryMessages messages () const
void reset () noexcept
void reset (const void *data, PacketSize size)
void reset (const void *data, PacketSize size, const NoVerify &) noexcept
Packetoperator= (const Packet &other) noexcept

Detailed Description

Definition at line 177 of file Packet.h.

Member Typedef Documentation

◆ Header

Definition at line 180 of file Packet.h.

Constructor & Destructor Documentation

◆ Packet() [1/4]

Packet ( )
inlinenoexcept

Initializes blank instance.

Definition at line 183 of file Packet.h.

◆ Packet() [2/4]

Packet ( const void * data,
PacketSize size )
inline

Initializes binary packet over the given buffer.

Exceptions
std::exceptionif given buffer doesn't satisfy base requirements on well-formed CME packet.

Definition at line 193 of file Packet.h.

◆ Packet() [3/4]

Packet ( const void * data,
PacketSize size,
const NoVerify &  )
inlinenoexcept

Initializes binary packet over the given buffer. Verification of the incoming content is omitted.

Definition at line 208 of file Packet.h.

◆ Packet() [4/4]

Packet ( const Packet & other)
inlinenoexcept

Initializes as a copy of the other instance.

Definition at line 215 of file Packet.h.

◆ ~Packet()

~Packet ( )
default

Does actually nothing.

Member Function Documentation

◆ data()

const void * data ( ) const
inlinenoexcept

Packet bytes.

Definition at line 234 of file Packet.h.

◆ header()

const Header * header ( ) const
inlinenoexcept

Packet header.

Definition at line 243 of file Packet.h.

◆ messages()

BinaryMessages messages ( ) const
inline

Returns collection of messages stored by instance.

Definition at line 277 of file Packet.h.

◆ operator bool()

operator bool ( ) const
inlinenoexcept

Indicates whether the given instance points to a valid packet.

Definition at line 227 of file Packet.h.

◆ operator=()

Packet & operator= ( const Packet & other)
inlinenoexcept

Re-initializes the instance as the copy of the other one.

Definition at line 316 of file Packet.h.

◆ reset() [1/3]

void reset ( )
inlinenoexcept

Resets the instance to the null state.

Definition at line 285 of file Packet.h.

◆ reset() [2/3]

void reset ( const void * data,
PacketSize size )
inline

Re-initializes the instance to refer to the other content.

Definition at line 293 of file Packet.h.

◆ reset() [3/3]

void reset ( const void * data,
PacketSize size,
const NoVerify &  )
inlinenoexcept

Re-initializes the instance to refer to the other content.

Definition at line 307 of file Packet.h.

◆ sendingTime()

Messaging::Timestamp sendingTime ( ) const
inlinenoexcept

Packet sending time.

Definition at line 268 of file Packet.h.

◆ seqNumber()

SequenceNumber seqNumber ( ) const
inlinenoexcept

Packet sequence number.

Definition at line 259 of file Packet.h.

◆ size()

PacketSize size ( ) const
inlinenoexcept

Packet size.

Definition at line 252 of file Packet.h.