OnixS C++ CME Market Data Handler  5.4.0
API documentation
Packet Class Reference

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

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 224 of file Packet.h.

Constructor & Destructor Documentation

Packet ( )
inline

Initializes blank instance.

Definition at line 237 of file Packet.h.

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 247 of file Packet.h.

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 273 of file Packet.h.

Packet ( const Packet other)
inline

Initializes as a copy of the other instance.

Definition at line 286 of file Packet.h.

~Packet ( )
inline

Does actually nothing.

Definition at line 294 of file Packet.h.

Member Function Documentation

const void* data ( ) const
inline

Packet bytes.

Definition at line 306 of file Packet.h.

BinaryMessages messages ( ) const
inline

Returns collection of messages stored by instance.

Definition at line 336 of file Packet.h.

operator bool ( ) const
inline

Indicates whether the given instance points to a valid packet.

Definition at line 300 of file Packet.h.

Packet& operator= ( const Packet other)
inline

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

Definition at line 402 of file Packet.h.

void reset ( )
inline

Resets the instance to the null state.

Definition at line 348 of file Packet.h.

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

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

Definition at line 357 of file Packet.h.

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

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

Definition at line 386 of file Packet.h.

const Timestamp& sendingTime ( ) const
inline

Packet sending time.

Definition at line 328 of file Packet.h.

SequenceNumber seqNumber ( ) const
inline

Packet sequence number.

Definition at line 320 of file Packet.h.

PacketSize size ( ) const
inline

Packet size.

Definition at line 314 of file Packet.h.


The documentation for this class was generated from the following file: