rad
2.0.0
|
#include <msgParsers.hpp>
Public Member Functions | |
MsgParsers (rad::SMAdapter &sm) | |
virtual | ~MsgParsers () |
void | Handle (const std::string &identity, const std::string &payload_type, void const *msg, size_t sz) override |
MsgParsers (const MsgParsers &)=delete | |
MsgParsers & | operator= (const MsgParsers &)=delete |
MsgParsers (rad::SMAdapter &sm) | |
virtual | ~MsgParsers () |
void | Handle (const std::string &identity, const std::string &payload_type, void const *msg, size_t sz) override |
MsgParsers (const MsgParsers &)=delete | |
MsgParsers & | operator= (const MsgParsers &)=delete |
![]() | |
virtual | ~MsgHandler () |
virtual | ~MsgHandler () |
This class parses a ZMQ raw requests/replies into application events and triggers the dispatching of the events.
|
explicit |
Constructor for the requests/replies messages handler.
[in] | eventDispatcher | Dispatcher to be used to dispatch the events. |
|
virtual |
Destructor.
|
delete |
|
explicit |
|
virtual |
|
delete |
|
overridevirtual |
Handle a raw request/reply messages by parsing the payload, creating the related event, and dispatching the event.
[in] | identity | Identity of the originator of the request/reply. |
[in] | payload_type | Type of the payload received. It coincides with the request ID. |
[in] | msg | Pointer to the raw message payload. |
[in] | sz | Size of the payload. |
Implements rad::MsgHandler.
|
overridevirtual |
Handles raw message.
identity | Requestor identity. |
msg_type_id | Identity of message type. |
data | Raw serialized message. |
data_size | Size of the raw message. |
Implements rad::MsgHandler.
|
delete |
|
delete |