CBOE Emulator
1.0
|
A header containing type information and metadata for a message. More...
#include <messages.hpp>
Public Member Functions | |
Header (uint16_t length_, MessageID uid_, SequenceNumber sequence_=0, TimeStamp time_=0) | |
Initialize a new session header. More... | |
std::string | to_string () const |
Convert the object to an STL string. More... | |
Public Attributes | |
const uint16_t | length |
the length of the message in bytes | |
const MessageID | uid |
the template ID for the message | |
const uint8_t | padding = 0 |
arbitrary padding to align the sequence number in memory | |
const SequenceNumber | sequence |
sequence number of the message (event time) | |
const TimeStamp | time |
the time for the message | |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const Header &header) |
Write the data from the header to a stream. More... | |
A header containing type information and metadata for a message.
|
inline |
Initialize a new session header.
length_ | the length of the message for the header in bytes |
uid_ | the template ID of the message for the header |
sequence_ | the sequence number for the message |
time_ | the time for the message |
|
inline |
Convert the object to an STL string.
|
friend |
Write the data from the header to a stream.
stream | the stream to write the data to |
header | the header to write to the stream |