IQRF Gateway Daemon
Public Member Functions | Public Attributes | List of all members
ComponentDescriptor Class Reference

Auxiliar class for component initialization. More...

#include <DaemonController.h>

Public Member Functions

 ComponentDescriptor (const std::string &componentName, bool enabled)
 parametric constructor More...
 
void loadConfiguration (const std::string configurationDir)
 load JSON configuration file More...
 
rapidjson::Value & getConfiguration ()
 get JSON configuration More...
 

Public Attributes

std::string m_componentName
 
std::string m_interfaceName
 
bool m_enabled = false
 
rapidjson::Document m_doc
 

Detailed Description

Auxiliar class for component initialization.

It is used by DaemonController to split and store components configuration from configuration file passed by cmdl

Constructor & Destructor Documentation

◆ ComponentDescriptor()

ComponentDescriptor::ComponentDescriptor ( const std::string &  componentName,
bool  enabled 
)
inline

parametric constructor

Parameters
[in]componentNamecomponent name
[in]enabledcomponent is enabled

Configuration data for particular component

Member Function Documentation

◆ getConfiguration()

rapidjson::Value& ComponentDescriptor::getConfiguration ( )
inline

get JSON configuration

Returns
JSON configuration data

Returns JSON configuration data obtained from component configuration file

◆ loadConfiguration()

void ComponentDescriptor::loadConfiguration ( const std::string  configurationDir)

load JSON configuration file

Parameters
[in]configurationDirdirectory with component configuration file

Load and parse JSON configuration file for component.

Member Data Documentation

◆ m_componentName

std::string ComponentDescriptor::m_componentName

◆ m_doc

rapidjson::Document ComponentDescriptor::m_doc

◆ m_enabled

bool ComponentDescriptor::m_enabled = false

◆ m_interfaceName

std::string ComponentDescriptor::m_interfaceName

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