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::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
 
 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
 
 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

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

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.
rad::cii::Replier::~Replier ( )
inline

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

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

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.
rad::cii::Replier::~Replier ( )
inline

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

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

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.
rad::cii::Replier::~Replier ( )
inline

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

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

Member Function Documentation

Replier& rad::cii::Replier::operator= ( const Replier )
delete
Replier& rad::cii::Replier::operator= ( const Replier )
delete
Replier& rad::cii::Replier::operator= ( const Replier )
delete
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.
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.
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.
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.
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.
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 files: