OnixS C++ CME MDP Premium Market Data Handler 5.9.0
API Documentation
Loading...
Searching...
No Matches
Packet Class Reference

Public Member Functions

 Packet ()
 Packet (const void *data, PacketSize size)
 Packet (const void *data, PacketSize size, const NoVerify &)
 Packet (const Packet &other)
 ~Packet ()
 operator bool () const
const void * data () const
PacketSize size () const
SequenceNumber seqNumber () const
const TimestampsendingTime () const
BinaryMessages messages () const
void reset ()
void reset (const void *data, PacketSize size)
void reset (const void *data, PacketSize size, const NoVerify &)
Packetoperator= (const Packet &other)

Detailed Description

Definition at line 177 of file Packet.h.

Constructor & Destructor Documentation

◆ Packet() [1/4]

Packet ( )
inline

Initializes blank instance.

Definition at line 181 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 191 of file Packet.h.

◆ Packet() [3/4]

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

Initializes binary packet over the given buffer.

Verification of the incoming content is omitted.

Definition at line 206 of file Packet.h.

◆ Packet() [4/4]

Packet ( const Packet & other)
inline

Initializes as a copy of the other instance.

Definition at line 213 of file Packet.h.

◆ ~Packet()

~Packet ( )
inline

Does actually nothing.

Definition at line 220 of file Packet.h.

Member Function Documentation

◆ data()

const void * data ( ) const
inline

Packet bytes.

Definition at line 230 of file Packet.h.

◆ messages()

BinaryMessages messages ( ) const
inline

Returns collection of messages stored by instance.

Definition at line 260 of file Packet.h.

◆ operator bool()

operator bool ( ) const
inline

Indicates whether the given instance points to a valid packet.

Definition at line 224 of file Packet.h.

◆ operator=()

Packet & operator= ( const Packet & other)
inline

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

Definition at line 298 of file Packet.h.

◆ reset() [1/3]

void reset ( )
inline

Resets the instance to the null state.

Definition at line 268 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 276 of file Packet.h.

◆ reset() [3/3]

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

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

Definition at line 289 of file Packet.h.

◆ sendingTime()

const Timestamp & sendingTime ( ) const
inline

Packet sending time.

Definition at line 252 of file Packet.h.

◆ seqNumber()

SequenceNumber seqNumber ( ) const
inline

Packet sequence number.

Definition at line 244 of file Packet.h.

◆ size()

PacketSize size ( ) const
inline

Packet size.

Definition at line 238 of file Packet.h.