rad 6.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
rad::cii::Replier Class Referencefinal

#include <replier.hpp>

Public Member Functions

 Replier (const elt::mal::Uri &uri, const std::optional< elt::mal::Mal::Properties > mal_properties={})
 
 ~Replier ()
 
template<class SERVICE_TYPE >
void RegisterService (const std::string &name, std::shared_ptr< SERVICE_TYPE > service)
 
void UnregisterService (const std::string &name)
 
 Replier (const Replier &)=delete
 
Replieroperator= (const Replier &)=delete
 

Detailed Description

This class can be used to handle incoming requests and send related replies.

Constructor & Destructor Documentation

◆ Replier() [1/2]

rad::cii::Replier::Replier ( const elt::mal::Uri & uri,
const std::optional< elt::mal::Mal::Properties > mal_properties = {} )
inlineexplicit

This constructor creates a MAL Server and runs it on a dedicated thread.

Parameters
uriURI for the interface realized by the Server.
mal_propertiesQoS for the request/reply.

◆ ~Replier()

rad::cii::Replier::~Replier ( )
inline

This destructor shutdown the MAL Server closing any pending connection and terminating the associated thread.

◆ Replier() [2/2]

rad::cii::Replier::Replier ( const Replier & )
delete

Member Function Documentation

◆ operator=()

Replier & rad::cii::Replier::operator= ( const Replier & )
delete

◆ RegisterService()

template<class SERVICE_TYPE >
void rad::cii::Replier::RegisterService ( const std::string & name,
std::shared_ptr< SERVICE_TYPE > service )
inline

This method registers a service implemented by the MAL Server.

Template Parameters
SERVICE_TYPEType of the service.
Parameters
nameService's name to register.
servicePointer to the service class.

◆ UnregisterService()

void rad::cii::Replier::UnregisterService ( const std::string & name)
inline

This method unregister a service implemented by the MAL Server.

Parameters
nameService's name to unregister.

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