43 lines
990 B
C++
43 lines
990 B
C++
/*
|
||
* 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_ */
|