REC RPC library
Public Member Functions | List of all members
rec::rpc::TopicListenerBase Struct Referenceabstract

topic listener wrapper interface More...

#include <rec_rpc_common.h>

Public Member Functions

virtual serialization::SerializablePtr createData () const =0
 
virtual void listen (const serialization::Serializable &data, const rec::rpc::ClientInfo &client, rec::rpc::ErrorCode errorCode) const =0
 

Detailed Description

topic listener wrapper interface

The interface that topic listener wrappers must implement. It is recommended to use the preprocessor macros to do this.

See also
DECLARE_TOPICLISTENER, BEGIN_TOPICLISTENER_DEFINITION, END_TOPICLISTENER_DEFINITION

Definition at line 147 of file rec_rpc_common.h.

Member Function Documentation

virtual serialization::SerializablePtr rec::rpc::TopicListenerBase::createData ( ) const
pure virtual

This method creates an instance of the topic data type.

virtual void rec::rpc::TopicListenerBase::listen ( const serialization::Serializable data,
const rec::rpc::ClientInfo client,
rec::rpc::ErrorCode  errorCode 
) const
pure virtual

This method is called to invoke the topic listener.

Parameters
datatopic data.
clientInfo about the calling client.
errorCodeError code.

The documentation for this struct was generated from the following file: