43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
|
|
/*!\file
|
|||
|
|
* \brief \todo <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|||
|
|
*/
|
|||
|
|
/*
|
|||
|
|
* CreateToBuilder.hpp
|
|||
|
|
*
|
|||
|
|
* Created on: 24 <EFBFBD><EFBFBD><EFBFBD>. 2019 <EFBFBD>.
|
|||
|
|
* Author: titov
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#ifndef SOURCE_APPLICATION_SOFTWARE_CREATETOBUILDER_HPP_
|
|||
|
|
#define SOURCE_APPLICATION_SOFTWARE_CREATETOBUILDER_HPP_
|
|||
|
|
|
|||
|
|
#include "../../common/Result.hh"
|
|||
|
|
#include "ApplicationConfigurator.hh"
|
|||
|
|
#include "AppBuilder.hh"
|
|||
|
|
#include "AppInfo.hh"
|
|||
|
|
|
|||
|
|
namespace configuration { namespace software {
|
|||
|
|
|
|||
|
|
struct CreateToBuilder {
|
|||
|
|
ApplicationConfigurator & factory;
|
|||
|
|
AppBuilder & builder;
|
|||
|
|
|
|||
|
|
CreateToBuilder( ApplicationConfigurator & app_factory, AppBuilder & app_builder )
|
|||
|
|
: factory(app_factory),
|
|||
|
|
builder(app_builder) {}
|
|||
|
|
|
|||
|
|
void operator ()( AppInfo::Initializers::InitializerInfo info ) {
|
|||
|
|
application::ISetupStep * step = create( factory,
|
|||
|
|
info.links,
|
|||
|
|
info.setting,
|
|||
|
|
info.proc,
|
|||
|
|
info.initializer_id );
|
|||
|
|
|
|||
|
|
add( builder, step, info.initializer_id );
|
|||
|
|
}
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
}}
|
|||
|
|
|
|||
|
|
#endif /* SOURCE_APPLICATION_SOFTWARE_CREATETOBUILDER_HPP_ */
|