rad  5.1.0
Public Member Functions | List of all members
server::MsgParsers Class Referencefinal

#include <msgParsers.hpp>

Inheritance diagram for server::MsgParsers:
rad::MsgHandler

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
 
MsgParsersoperator= (const MsgParsers &)=delete
 
- Public Member Functions inherited from rad::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

◆ MsgParsers() [1/2]

server::MsgParsers::MsgParsers ( rad::SMAdapter sm)
explicit

Constructor for the requests/replies messages handler.

Parameters
[in]smSM adapter used to trigger events.

◆ ~MsgParsers()

server::MsgParsers::~MsgParsers ( )
virtual

Destructor.

◆ MsgParsers() [2/2]

server::MsgParsers::MsgParsers ( const MsgParsers )
delete

Member Function Documentation

◆ Handle()

void server::MsgParsers::Handle ( const std::string &  identity,
const std::string &  payload_type,
void const *  msg,
size_t  sz 
)
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]payload_typeType of the payload received. It coincides with the request ID.
[in]msgPointer to the raw message payload.
[in]szSize of the payload.

Implements rad::MsgHandler.

◆ operator=()

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

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