mirror of
https://github.com/muccc/WomoLIN.git
synced 2026-03-24 09:46:50 +01:00
21 lines
450 B
C++
21 lines
450 B
C++
#include "include/signal.h"
|
|
#include <iostream>
|
|
|
|
namespace womolin::lib::signal
|
|
{
|
|
|
|
void LibSignalSetReset::UpdateUnit( std::string & key, std::string & value )
|
|
{
|
|
|
|
std::cout << "received : " << key << ":" << value << std::endl;
|
|
|
|
auto valueEnum = StringToESetReset( value );
|
|
|
|
for (const auto & unit : units){
|
|
unit->UpdateUnitSignalSetReset( key, valueEnum );
|
|
}
|
|
|
|
value = ESetResetToString( valueEnum );
|
|
}
|
|
}
|