3 #include <utils/Components.h> 4 #include <utils/Logger.h> 41 std::map<hyperion::Components, bool>
getRegister() {
return _componentStates; };
65 std::map<hyperion::Components, bool> _componentStates;
67 std::map<hyperion::Components, bool> _prevComponentStates;
The component register reflects and manages the current state of all components and Hyperion as a who...
Definition: ComponentRegister.h:17
The main class of Hyperion.
Definition: Hyperion.h:57
Provide utility methods for Hyperion class.
Definition: BlackBorderDetector.h:7
void updatedComponentState(const hyperion::Components comp, const bool state)
Emits whenever a component changed (really) the state.
Components
Enumeration of components in Hyperion.
Definition: Components.h:10
void componentStateChanged(const hyperion::Components comp, const bool activated)
is called whenever a component change a state, DO NOT CALL FROM API (use hyperion->setComponentState(...
Definition: ComponentRegister.cpp:63
bool setHyperionEnable(const bool &state)
Enable or disable Hyperion (all components)
Definition: ComponentRegister.cpp:25
std::map< hyperion::Components, bool > getRegister()
contains all components and their state
Definition: ComponentRegister.h:41
int isComponentEnabled(const hyperion::Components &comp) const
Check if a component is currently enabled.
Definition: ComponentRegister.cpp:58