OnixS C++ ICE Binary Order Entry Handler 1.1.1
API Documentation
Loading...
Searching...
No Matches
MessagePrinter Struct Reference

Public Member Functions

template<typename MessageType>
void operator() (const MessageType msg) const

Static Public Member Functions

static void printMsg (const Messaging::SbeMessage msg)

Detailed Description

Definition at line 38 of file Listener.h.

Member Function Documentation

◆ operator()()

template<typename MessageType>
void operator() ( const MessageType msg) const
inline

Definition at line 41 of file Listener.h.

42 {
43 std::clog << msg << std::endl;
44 }

◆ printMsg()

void printMsg ( const Messaging::SbeMessage msg)
inlinestatic

Definition at line 46 of file Listener.h.

47 {
48 if (!processTypified(msg, MessagePrinter()))
49 std::clog << "Unknown message type";
50 }
bool processTypified(SbeMessage binary, Processor &&processor)
Casts a given binary message according to template/type information and processes the cast messages b...