IQRF Gateway Daemon
Public Member Functions | List of all members
IService Class Referenceabstract

IService interface. More...

#include <IService.h>

Inheritance diagram for IService:
BaseService ClientServicePm ProtocolBridgeClientService ServiceExample ThermometerService

Public Member Functions

virtual void start ()=0
 Start IService instance. More...
 
virtual void stop ()=0
 Stop IService instance. More...
 
virtual void update (const rapidjson::Value &cfg)=0
 Update configuration. More...
 
virtual const std::string & getName () const =0
 Get name of the instance. More...
 
virtual void setDaemon (IDaemon *daemon)=0
 Set IDaemon instance reference. More...
 
virtual void setSerializer (ISerializer *serializer)=0
 Set ISerializer instance reference. More...
 
virtual void setMessaging (IMessaging *messaging)=0
 Set IMessaging instance reference. More...
 
virtual ~IService ()
 

Detailed Description

IService interface.

Constructor & Destructor Documentation

◆ ~IService()

virtual IService::~IService ( )
inlinevirtual

Member Function Documentation

◆ getName()

virtual const std::string& IService::getName ( ) const
pure virtual

Get name of the instance.

Returns
The instance name

Returns unique name of the instance

Implemented in ProtocolBridgeClientService, ServiceExample, ClientServicePm, BaseService, and ThermometerService.

◆ setDaemon()

virtual void IService::setDaemon ( IDaemon daemon)
pure virtual

Set IDaemon instance reference.

Parameters
[in]daemonreferenced instance

Set IDaemon instance reference to access its interface

Implemented in ProtocolBridgeClientService, ServiceExample, ClientServicePm, BaseService, and ThermometerService.

◆ setMessaging()

virtual void IService::setMessaging ( IMessaging messaging)
pure virtual

Set IMessaging instance reference.

Parameters
[in]messagingreferenced instance

Set IMessaging instance reference to access its interface

Implemented in ProtocolBridgeClientService, ServiceExample, ClientServicePm, BaseService, and ThermometerService.

◆ setSerializer()

virtual void IService::setSerializer ( ISerializer serializer)
pure virtual

Set ISerializer instance reference.

Parameters
[in]serializerreferenced instance

Set ISerializer instance reference to access its interface

Implemented in ProtocolBridgeClientService, ServiceExample, ClientServicePm, BaseService, and ThermometerService.

◆ start()

virtual void IService::start ( )
pure virtual

Start IService instance.

IService implementation starts to process incoming messages

Implemented in ProtocolBridgeClientService, ServiceExample, ClientServicePm, BaseService, and ThermometerService.

◆ stop()

virtual void IService::stop ( )
pure virtual

Stop IService instance.

IService implementation stops processing incoming messages

Implemented in ProtocolBridgeClientService, ServiceExample, ClientServicePm, BaseService, and ThermometerService.

◆ update()

virtual void IService::update ( const rapidjson::Value &  cfg)
pure virtual

Update configuration.

Parameters
[in]cfgconfiguration data

Configuration data are taken from passed cfg and the instance is configured accordingly

Implemented in ProtocolBridgeClientService, ServiceExample, ClientServicePm, BaseService, and ThermometerService.


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