rad  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
rad::MsgHandler Class Referenceabstract

#include <msgHandler.hpp>

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

Public Member Functions

virtual ~MsgHandler ()
 
virtual void Handle (const std::string &identity, const std::string &msg_type_id, const void *data, size_t data_size)=0
 
virtual ~MsgHandler ()
 
virtual void Handle (const std::string &identity, const std::string &msg_type_id, const void *data, size_t data_size)=0
 

Detailed Description

Base class for actions performed for a specific message type

Constructor & Destructor Documentation

virtual rad::MsgHandler::~MsgHandler ( )
inlinevirtual
virtual rad::MsgHandler::~MsgHandler ( )
inlinevirtual

Member Function Documentation

virtual void rad::MsgHandler::Handle ( const std::string &  identity,
const std::string &  msg_type_id,
const void *  data,
size_t  data_size 
)
pure virtual

Handles raw message.

Parameters
identityRequestor identity.
msg_type_idIdentity of message type.
dataRaw serialized message.
data_sizeSize of the raw message.
Todo:
replace data with array_view

Implemented in hello::MsgParsers, hello::MsgParsers, server::MsgParsers, server::MsgParsers, and TestMsgHandler.

virtual void rad::MsgHandler::Handle ( const std::string &  identity,
const std::string &  msg_type_id,
const void *  data,
size_t  data_size 
)
pure virtual

Handles raw message.

Parameters
identityRequestor identity.
msg_type_idIdentity of message type.
dataRaw serialized message.
data_sizeSize of the raw message.
Todo:
replace data with array_view

Implemented in hello::MsgParsers, hello::MsgParsers, server::MsgParsers, server::MsgParsers, and TestMsgHandler.


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