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::TopicParsers Class Referencefinal

#include <msgParsers.hpp>

Inheritance diagram for server::TopicParsers:
rad::TopicHandler rad::TopicHandler rad::TopicHandler rad::TopicHandler

Public Member Functions

 TopicParsers (rad::Dispatcher &event_dispatcher)
 
void handle (const std::string &payload_type, void const *topic, size_t topic_size) override
 
 TopicParsers (const TopicParsers &)=delete
 
TopicParsersoperator= (const MsgParsers &)=delete
 Disable copy constructor. More...
 
 TopicParsers (rad::Dispatcher &eventDispatcher)
 
void handle (const std::string &payloadType, void const *pTopic, size_t msgSize) override
 
 TopicParsers (const TopicParsers &)=delete
 
TopicParsersoperator= (const MsgParsers &)=delete
 
 TopicParsers (rad::Dispatcher &event_dispatcher)
 
void handle (const std::string &payload_type, void const *topic, size_t topic_size) override
 
 TopicParsers (const TopicParsers &)=delete
 
TopicParsersoperator= (const MsgParsers &)=delete
 Disable copy constructor. More...
 
 TopicParsers (rad::Dispatcher &eventDispatcher)
 
void handle (const std::string &payloadType, void const *pTopic, size_t msgSize) override
 
 TopicParsers (const TopicParsers &)=delete
 
TopicParsersoperator= (const MsgParsers &)=delete
 
- Public Member Functions inherited from rad::TopicHandler
virtual ~TopicHandler ()
 
virtual ~TopicHandler ()
 
virtual ~TopicHandler ()
 

Detailed Description

This class parses a ZMQ raw topics into application events and triggers the dispatching of the events.

Constructor & Destructor Documentation

server::TopicParsers::TopicParsers ( rad::Dispatcher eventDispatcher)

Constructor for the topics messages handler.

Parameters
[in]eventDispatcherDispatcher to be used to dispatch the events.
server::TopicParsers::TopicParsers ( const TopicParsers )
delete
server::TopicParsers::TopicParsers ( rad::Dispatcher eventDispatcher)
server::TopicParsers::TopicParsers ( const TopicParsers )
delete
server::TopicParsers::TopicParsers ( rad::Dispatcher event_dispatcher)

Constructor for the topics messages handler.

Parameters
[in]eventDispatcherDispatcher to be used to dispatch the events.
server::TopicParsers::TopicParsers ( const TopicParsers )
delete
server::TopicParsers::TopicParsers ( rad::Dispatcher eventDispatcher)
server::TopicParsers::TopicParsers ( const TopicParsers )
delete

Member Function Documentation

void server::TopicParsers::handle ( const std::string &  topicTypeId,
void const pData,
size_t  dataSize 
)
overridevirtual

Handles raw topic.

Parameters
msgTypeIdIdentity of message type.
pDataRaw serialized message.
dataSizeSize of pData.

Implements rad::TopicHandler.

void server::TopicParsers::handle ( const std::string &  topicTypeId,
void const pData,
size_t  dataSize 
)
overridevirtual

Handles raw topic.

Parameters
msgTypeIdIdentity of message type.
pDataRaw serialized message.
dataSizeSize of pData.

Implements rad::TopicHandler.

void server::TopicParsers::handle ( const std::string &  payload_type,
void const topic,
size_t  topic_size 
)
overridevirtual

Handle a raw topic 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::TopicHandler.

void server::TopicParsers::handle ( const std::string &  topic,
void const pTopic,
size_t  sz 
)
overridevirtual

Handle a raw topic 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::TopicHandler.

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

Disable copy constructor.

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

Disable copy constructor.


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