ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ctd::qatk::qapp2::MsgParsers Class Referencefinal

#include <msgParsers.hpp>

Inheritance diagram for ctd::qatk::qapp2::MsgParsers:
rad::MsgHandler rad::MsgHandler

Public Member Functions

 MsgParsers (rad::Dispatcher &event_dispatcher)
 
virtual ~MsgParsers ()
 
void handle (const std::string &identity, const std::string &payload_type, void const *msg, size_t msg_size) override
 
 MsgParsers (const MsgParsers &)=delete
 
MsgParsersoperator= (const MsgParsers &)=delete
 Disable copy constructor. More...
 
 MsgParsers (rad::Dispatcher &event_dispatcher)
 
virtual ~MsgParsers ()
 
void handle (const std::string &identity, const std::string &payload_type, void const *msg, size_t msg_size) override
 
 MsgParsers (const MsgParsers &)=delete
 
MsgParsersoperator= (const MsgParsers &)=delete
 Disable copy constructor. More...
 
- Public Member Functions inherited from rad::MsgHandler
virtual ~MsgHandler ()
 
virtual ~MsgHandler ()
 
virtual ~MsgHandler ()
 

Detailed Description

This class parses a ZMQ raw requests/replies into application events and triggers the dispatching of the events.

Constructor & Destructor Documentation

ctd::qatk::qapp2::MsgParsers::MsgParsers ( rad::Dispatcher event_dispatcher)
explicit

Constructor for the requests/replies messages handler.

Parameters
[in]eventDispatcherDispatcher to be used to dispatch the events.
ctd::qatk::qapp2::MsgParsers::~MsgParsers ( )
virtual
ctd::qatk::qapp2::MsgParsers::MsgParsers ( const MsgParsers )
delete
ctd::qatk::qapp2::MsgParsers::MsgParsers ( rad::Dispatcher event_dispatcher)
explicit

Constructor for the requests/replies messages handler.

Parameters
[in]eventDispatcherDispatcher to be used to dispatch the events.
virtual ctd::qatk::qapp2::MsgParsers::~MsgParsers ( )
virtual
ctd::qatk::qapp2::MsgParsers::MsgParsers ( const MsgParsers )
delete

Member Function Documentation

void ctd::qatk::qapp2::MsgParsers::handle ( const std::string &  identity,
const std::string &  payload_type,
void const msg,
size_t  msg_size 
)
overridevirtual

Handle a raw request/reply messages by parsing the payload, creating the related event, and dispatching the event.

Parameters
[in]identityIdentity of the originator of the request/reply.
[in]payloadTypeType of the payload received. It coincides with the request ID.
[in]pMsgPointer to the raw message payload.
[in]msgSizeSize of the payload.

Implements rad::MsgHandler.

void ctd::qatk::qapp2::MsgParsers::handle ( const std::string &  identity,
const std::string &  payload_type,
void const msg,
size_t  msg_size 
)
overridevirtual

Handle a raw request/reply messages by parsing the payload, creating the related event, and dispatching the event.

Parameters
[in]identityIdentity of the originator of the request/reply.
[in]payloadTypeType of the payload received. It coincides with the request ID.
[in]pMsgPointer to the raw message payload.
[in]msgSizeSize of the payload.

Implements rad::MsgHandler.

MsgParsers& ctd::qatk::qapp2::MsgParsers::operator= ( const MsgParsers )
delete

Disable copy constructor.

MsgParsers& ctd::qatk::qapp2::MsgParsers::operator= ( const MsgParsers )
delete

Disable copy constructor.


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