mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
28 lines
631 B
C++
28 lines
631 B
C++
|
#include <hyperion/ComponentRegister.h>
|
||
|
#include <iostream>
|
||
|
|
||
|
ComponentRegister::ComponentRegister()
|
||
|
: _log(Logger::getInstance("ComponentRegister"))
|
||
|
{
|
||
|
}
|
||
|
|
||
|
ComponentRegister::~ComponentRegister()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
|
||
|
void ComponentRegister::componentStateChanged(const hyperion::Components comp, const bool activated)
|
||
|
{
|
||
|
Info(_log, "%s: %s", componentToString(comp), (activated? "activated" : "off"));
|
||
|
_componentStates.emplace(comp,activated);
|
||
|
_componentStates[comp] = activated;
|
||
|
|
||
|
/* for(auto comp : _componentStates)
|
||
|
{
|
||
|
std::cout << hyperion::componentToIdString(comp.first) << " " << comp.second << std::endl;
|
||
|
}
|
||
|
std::cout << "\n";
|
||
|
*/
|
||
|
}
|
||
|
|