AceSmartSoft API Documentation
Public Types | Public Member Functions | List of all members
SmartACE::SendServer< C > Class Template Reference

Server part of one-way communication pattern. More...

#include <smartSend.hh>

Inheritance diagram for SmartACE::SendServer< C >:

Public Types

using ISendServerBase = Smart::ISendServerPattern< C >
 

Public Member Functions

 SendServer (SmartComponent *component, const std::string &service, ISendServerHandlerPtr handler=nullptr)
 constructor. More...
 
virtual ~SendServer ()
 Destructor. More...
 

Detailed Description

template<class C>
class SmartACE::SendServer< C >

Server part of one-way communication pattern.

Template parameters:

Demonstrated in sixth example

Member Typedef Documentation

◆ ISendServerBase

template<class C >
using SmartACE::SendServer< C >::ISendServerBase = Smart::ISendServerPattern<C>

Constructor & Destructor Documentation

◆ SendServer()

template<class C >
SmartACE::SendServer< C >::SendServer ( SmartComponent component,
const std::string &  service,
ISendServerHandlerPtr  handler = nullptr 
)

constructor.

Note that a handler has to be supplied. Without a handler, the SendServer could not accept a command.

(Currently exception not thrown)

Parameters
componentmanagement class of the component
servicename of the service
handleran optional pointer to the send-handler

◆ ~SendServer()

template<class C >
virtual SmartACE::SendServer< C >::~SendServer ( )
virtual

Destructor.

Properly disconnects all service requestors in case of destruction.


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