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
server::MsgParsers Class Referencefinal

#include <msgParsers.hpp>

Inheritance diagram for server::MsgParsers:
rad::MsgHandler rad::MsgHandler 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 &eventDispatcher)
 
virtual ~MsgParsers ()
 
void handle (const std::string &identity, const std::string &payloadType, void const *pMsg, size_t msgSize) override
 
 MsgParsers (const MsgParsers &)=delete
 
MsgParsersoperator= (const MsgParsers &)=delete
 
 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 &eventDispatcher)
 
virtual ~MsgParsers ()
 
void handle (const std::string &identity, const std::string &payloadType, void const *pMsg, size_t msgSize) override
 
 MsgParsers (const MsgParsers &)=delete
 
MsgParsersoperator= (const MsgParsers &)=delete
 
- 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

server::MsgParsers::MsgParsers ( rad::Dispatcher eventDispatcher)

Constructor for the requests/replies messages handler.

Parameters
[in]eventDispatcherDispatcher to be used to dispatch the events.
server::MsgParsers::~MsgParsers ( )
virtual

Destructor.

server::MsgParsers::MsgParsers ( const MsgParsers )
delete
server::MsgParsers::MsgParsers ( rad::Dispatcher eventDispatcher)
virtual server::MsgParsers::~MsgParsers ( )
virtual
server::MsgParsers::MsgParsers ( const MsgParsers )
delete
server::MsgParsers::MsgParsers ( rad::Dispatcher event_dispatcher)

Constructor for the requests/replies messages handler.

Parameters
[in]eventDispatcherDispatcher to be used to dispatch the events.
virtual server::MsgParsers::~MsgParsers ( )
virtual

Destructor.

server::MsgParsers::MsgParsers ( const MsgParsers )
delete
server::MsgParsers::MsgParsers ( rad::Dispatcher eventDispatcher)
virtual server::MsgParsers::~MsgParsers ( )
virtual
server::MsgParsers::MsgParsers ( const MsgParsers )
delete

Member Function Documentation

void server::MsgParsers::handle ( const std::string &  identity,
const std::string &  msgTypeId,
void const pData,
size_t  dataSize 
)
overridevirtual

Handles raw message.

Parameters
identityRequestor identity.
msgTypeIdIdentity of message type.
pDataRaw serialized message.
dataSizeSize of pData.
Todo:
replace pData with array_view

Implements rad::MsgHandler.

void server::MsgParsers::handle ( const std::string &  identity,
const std::string &  msgTypeId,
void const pData,
size_t  dataSize 
)
overridevirtual

Handles raw message.

Parameters
identityRequestor identity.
msgTypeIdIdentity of message type.
pDataRaw serialized message.
dataSizeSize of pData.
Todo:
replace pData with array_view

Implements rad::MsgHandler.

void server::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 server::MsgParsers::handle ( const std::string &  identity,
const std::string &  payloadType,
void const pMsg,
size_t  msgSize 
)
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& server::MsgParsers::operator= ( const MsgParsers )
delete
MsgParsers& server::MsgParsers::operator= ( const MsgParsers )
delete
MsgParsers& server::MsgParsers::operator= ( const MsgParsers )
delete

Disable copy constructor.

MsgParsers& server::MsgParsers::operator= ( const MsgParsers )
delete

Disable copy constructor.


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