AceSmartSoft API Documentation
Public Member Functions | List of all members
SmartACE::SendServerHandler< C > Class Template Referenceabstract

Handler Class for SendServer for incoming commands. More...

#include <smartSend.hh>

Inheritance diagram for SmartACE::SendServerHandler< C >:

Public Member Functions

virtual ~SendServerHandler ()=default
 
virtual void handleSend (const C &cmd)=0
 Handler method for an incoming command. More...
 

Detailed Description

template<class C>
class SmartACE::SendServerHandler< C >

Handler Class for SendServer for incoming commands.

Used by the SendServer to handle incoming commands. The user should provide the handleSend() method by subclassing and register an instance of this handler class with the SendServer.

Constructor & Destructor Documentation

◆ ~SendServerHandler()

template<class C >
virtual SmartACE::SendServerHandler< C >::~SendServerHandler ( )
virtualdefault

Member Function Documentation

◆ handleSend()

template<class C >
virtual void SmartACE::SendServerHandler< C >::handleSend ( const C &  cmd)
pure virtual

Handler method for an incoming command.

This method is called by the communication pattern every time a new command is received. It must be provided by the component developer to handle incoming commands. Since the method is executed by the communication thread, it must be very fast and non-blocking.

Usually the command will be inserted into a queue and another working thread processes the command. The ThreadedSendHandler decorator provides such a processing pattern.

Parameters
cmdcommand object (Communication Object)

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