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

Public Member Functions

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

Detailed Description

Definition at line 222 of file Packet.h.

Constructor & Destructor Documentation

◆ Packet() [1/3]

Packet ( )
inline

Initializes blank instance.

Definition at line 235 of file Packet.h.

◆ Packet() [2/3]

Packet ( const void * data,
size_t size )
inline

Initializes binary packet over given buffer.

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

Definition at line 245 of file Packet.h.

◆ Packet() [3/3]

Packet ( const Packet & other)
inline

Initializes as a copy of the other instance.

Definition at line 270 of file Packet.h.

◆ ~Packet()

~Packet ( )
inline

Does actually nothing.

Definition at line 278 of file Packet.h.

Member Function Documentation

◆ data()

const void * data ( ) const
inline

Packet bytes.

Definition at line 283 of file Packet.h.

◆ messages()

BinaryMessages messages ( ) const
inline

Returns collection of messages stored by instance.

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

◆ reset() [1/2]

void reset ( )
inline

Resets the instance to the null state.

Definition at line 325 of file Packet.h.

◆ reset() [2/2]

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

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

Definition at line 334 of file Packet.h.

◆ sendingTime()

const Timestamp & sendingTime ( ) const
inline

Packet sending time.

Definition at line 305 of file Packet.h.

◆ seqNumber()

SequenceNumber seqNumber ( ) const
inline

Packet sequence number.

Definition at line 297 of file Packet.h.

◆ size()

size_t size ( ) const
inline

Packet size.

Definition at line 291 of file Packet.h.