RumPi 1.0
A self-assembling C++ sensor & actuator library for the Raspberry Pi 5
ComponentFactory.h
Go to the documentation of this file.
1#pragma once
2#include <string>
3#include "../json.hpp"
4
5namespace RumPi
6{
7 class ComponentManager;
8 class RumPiConfig;
9
19 {
20 public:
40 static int BuildComponents(ComponentManager& manager, const nlohmann::json& configJson, const RumPiConfig& config);
41 };
42} // namespace RumPi
Builds the sensor components described by a JSON manifest and adds them to a ComponentManager.
Definition: ComponentFactory.h:19
static int BuildComponents(ComponentManager &manager, const nlohmann::json &configJson, const RumPiConfig &config)
Reads the "components" array from an already-parsed config JSON and adds a live component to 'manager...
Definition: ComponentFactory.cpp:917
Owns and drives the set of sensor components.
Definition: ComponentManager.h:19
Holds the library's runtime configuration, loaded from a JSON file.
Definition: RumPiConfig.h:17
RumPi is the library's top-level facade.
Definition: AlertManager.h:6