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

43 lines
990 B
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.

/*
* EmptyActionLogger.hh
*
* Created on: 23 янв. 2022 г.
* Author: sozonov
*/
#ifndef UMLIBRARY_APPLICATION_LOG_EMPTYACTIONLOGGER_HH_
#define UMLIBRARY_APPLICATION_LOG_EMPTYACTIONLOGGER_HH_
#include "../ISetupStep.hh"
#include "../../systemic/IFunctor.hh"
#include "../../systemic/IStatus.hh"
namespace application { namespace log {
//! Утилита логгирования пустого сообщения.
struct EmptyActionLogger : public ISetupStep {
typedef systemic::IStatus IStatus;
typedef ::systemic::IFunctor<void> Action;
IStatus * status = nullptr;
bool input( Environment & env );
void build( Environment & env );
struct Links {
Environment::Id log; //!< Журнал.
Environment::Id logging; //!< Действие записи в лог.
};
const Links & links;
EmptyActionLogger( const Links & links );
};
}}
#endif /* UMLIBRARY_APPLICATION_LOG_EMPTYACTIONLOGGER_HH_ */