MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/application/log/SignalActionLogger.hh
2024-06-07 11:12:56 +03:00

47 lines
1.1 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* SignalActionLogger.hh
*
* Created on: 23 янв. 2022 г.
* Author: sozonov
*/
#ifndef UMLIBRARY_APPLICATION_LOG_SIGNALACTIONLOGGER_HH_
#define UMLIBRARY_APPLICATION_LOG_SIGNALACTIONLOGGER_HH_
#include "../ISetupStep.hh"
#include "../../systemic/IFunctor.hh"
namespace application { namespace log {
//! Утилита логгирования информации о сигнале ( Id, значение ).
struct SignalActionLogger : public ISetupStep {
typedef systemic::IFunctor<void> Action;
systemic::ISignal * signal;
bool input( Environment & env );
void build( Environment & env );
struct Links {
Environment::SignalId signal; //!< Сигнал для записи в лог.
Environment::Id signals_log; //!< Журнал менеджера сигналов.
Environment::Id logging; //!< Действие записи в лог.
};
const Links & links;
SignalActionLogger( const Links & links );
};
}}
#endif /* UMLIBRARY_APPLICATION_LOG_SIGNALACTIONLOGGER_HH_ */