MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/application/log/StatusActionLogger.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.

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