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

35 lines
1.0 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.

/*
* ConfigurableCondition.hh
*
* Created on: 7 сент. 2023 г.
* Author: titov
*/
#ifndef UMLIBRARY_APPLICATION_SCHEMATIC_CONFIGURABLETRIGGER_HH_
#define UMLIBRARY_APPLICATION_SCHEMATIC_CONFIGURABLETRIGGER_HH_
#include "../ISetupStep.hh"
namespace application { namespace schematic {
//!Динамически конфигурируемое условие, позволяет сравнивать любое значение с уставкой по условию (динамически заданными).
struct ConfigurableCondition : public ISetupStep {
bool input( Environment & env );
void build( Environment & env );
struct Links {
Environment::Id trigger; //!<Интерфейс настройки триггера
Environment::StatusId condition; //!<Условие
};
const Links & links;
ConfigurableCondition( const Links & links ) : links(links) {}
};
}
}
#endif /* UMLIBRARY_APPLICATION_SCHEMATIC_CONFIGURABLETRIGGER_HH_ */