40 lines
1022 B
C++
40 lines
1022 B
C++
/*
|
|
* EmptyActionLoggerInitializer.cpp
|
|
*
|
|
* Created on: 23 ÿíâ. 2022 ã.
|
|
* Author: sozonov
|
|
*/
|
|
|
|
#include "EmptyActionLogger.hh"
|
|
|
|
#include "../../systemic/ActionLogger.hpp"
|
|
#include "../../systemic/MemberFuntion.hpp"
|
|
|
|
application::log::EmptyActionLogger::EmptyActionLogger( const Links & links ) : links( links ) {}
|
|
|
|
|
|
bool application::log::EmptyActionLogger::input( Environment & env ) {
|
|
|
|
return ( true );
|
|
|
|
}
|
|
|
|
void application::log::EmptyActionLogger::build( Environment & env ) {
|
|
|
|
typedef systemic::EmptyMessageActionLogger EmptyActionLogger;
|
|
|
|
EmptyActionLogger * loggable = memories::instance_object<EmptyActionLogger>( env.static_setup_ma);
|
|
|
|
|
|
env.rholder.share<logging::ILoggable>(*loggable, links.log);
|
|
|
|
|
|
typedef systemic::detail::MemberFuntion<EmptyActionLogger, void, &EmptyActionLogger::logging > ActionLogging;
|
|
ActionLogging * action_log = memories::instance_object<ActionLogging>( env.static_setup_ma, *loggable );
|
|
env.rholder.share<Action>( *action_log, links.logging );
|
|
|
|
|
|
}
|
|
|
|
|