MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/application/basic/SystemParamProviderRegistration.hh

42 lines
1.1 KiB
C++
Raw Normal View History

2024-06-07 11:12:56 +03:00
/*
* ParamProviderRegistration.hh
*
* Created on: 18 мар. 2020 г.
* Author: titov
*/
#ifndef UMLIBRARY_APPLICATION_BASIC_SYSTEMPARAMPROVIDERREGISTRATION_HH_
#define UMLIBRARY_APPLICATION_BASIC_PARAMPROVIDERREGISTRATION_HH_
#include "../ISetupStep.hh"
#include "../../systemic/IParameterProvider.hh"
namespace application { namespace basic {
//!Регистрация предоставителя параметров системы в окружении.
struct SystemParamProviderRegistration : public ISetupStep {
systemic::IParameterProvider * provider = nullptr;
struct Links {
Environment::Id provider; //!<Модуль предоставления параметров.
};
const Links & links;
bool input( Environment & env );
void build( Environment & env );
//!Идентификатор провайдера настроек системы.
static const systemic::CustomParameters::ProviderId system_provider_id = 0;
SystemParamProviderRegistration( const Links & links ) : links(links) {}
};
}}
#endif /* UMLIBRARY_APPLICATION_BASIC_SYSTEMPARAMPROVIDERREGISTRATION_HH_ */