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

45 lines
1.5 KiB
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.

/*
* DynamicFlag.hh
*
* Created on: 28 нояб. 2023 г.
* Author: titov
*/
#ifndef UMLIBRARY_APPLICATION_SCHEMATIC_DYNAMICFLAG_HH_
#define UMLIBRARY_APPLICATION_SCHEMATIC_DYNAMICFLAG_HH_
#include "../ISetupStep.hh"
#include "../../schematic/SettableValue.hh"
namespace application { namespace schematic {
//!Динамически устанавливаемый параметр, представленный в качестве cтатуса, с предварительной установкой.
struct DynamicFlag : public ISetupStep {
static const Environment::Id provider = 0;
typedef ::schematic::SettableFlag Settable;
systemic::Parameter<Settable> parameter;
bool input( Environment & env );
void build( Environment & env );
struct Links {
Environment::Id preset; //!<Предзаданное значение (по умолчанию).
Environment::Id set; //!<Интерфейс установки динамического значения.
Environment::Id reset; //!<Интерфейс сброса на предустановленное значение.
Environment::SignalId value; //!<Динамическое значение, отражающее состояние параметра.
};
const Links & links;
DynamicFlag( const Links & links ) : links(links) {}
};
}
}
#endif /* UMLIBRARY_APPLICATION_SCHEMATIC_DYNAMICFLAG_HH_ */