Auxiliar class for component initialization.
More...
#include <DaemonController.h>
Auxiliar class for component initialization.
It is used by DaemonController to split and store components configuration from configuration file passed by cmdl
◆ ComponentDescriptor()
ComponentDescriptor::ComponentDescriptor |
( |
const std::string & |
componentName, |
|
|
bool |
enabled |
|
) |
| |
|
inline |
parametric constructor
- Parameters
-
[in] | componentName | component name |
[in] | enabled | component is enabled |
Configuration data for particular component
◆ 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] | configurationDir | directory with component configuration file |
Load and parse JSON configuration file for component.
◆ 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: