|
ITCH 5.0 Market Data Handler 1.0.0
NASDAQ ITCH 5.0 Market Data Feed Handler
|
Base class for all NASDAQ protocol messages. More...
Base class for all NASDAQ protocol messages.
Provides a common header structure with message type discrimination and type-safe casting capabilities. All NASDAQ protocol messages derive from this base class.
#include <nasdaq/common/Types.h>
Public Member Functions | |
| Alpha | get_type () const |
| Get the message type. | |
| void | set_type (Alpha val) |
| Set the message type. | |
| template<class T> | |
| const T * | cast () const |
| Cast to a specific message type (const). | |
| template<class T> | |
| T * | cast () |
| Cast to a specific message type (non-const). | |
|
inline |
Cast to a specific message type (non-const).
Performs a static cast to the specified message type. The caller is responsible for ensuring the cast is valid based on get_type().
| T | Target message type |
|
inline |
Cast to a specific message type (const).
Performs a static cast to the specified message type. The caller is responsible for ensuring the cast is valid based on get_type().
| T | Target message type |
|
inline |
Get the message type.
Referenced by b2bits::nasdaq::itch50::Instrument::get_order_book_state(), b2bits::nasdaq::itch50::Instrument::get_system_event(), b2bits::nasdaq::itch50::Instrument::get_volume_update(), and b2bits::nasdaq::itch50::message_switch().
|
inline |
Set the message type.
| val | Message type character to set |