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

43 lines
942 B
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.

/*
* SetValue.hh
*
* Created on: 4 авг. 2020 г.
* Author: LeonidTitov
*/
#ifndef UMLIBRARY_APPLICATION_SCHEMATIC_SETVALUE_HH_
#define UMLIBRARY_APPLICATION_SCHEMATIC_SETVALUE_HH_
#include "../ISetupStep.hh"
#include "../../schematic/action/SetValue.hh"
namespace application { namespace schematic {
//!Установить значение по действию.
struct SetValue : public ISetupStep {
typedef systemic::IValueType<float> Value;
Value * value = nullptr;
bool input( Environment & env );
void build( Environment & env );
struct Links {
Environment::Id value; //!<Значение подлежащее установке.
Environment::Id set; //!<Действие установки.
};
const Links & links;
SetValue( const Links & links ) : links(links) {}
};
}}
#endif /* UMLIBRARY_APPLICATION_SCHEMATIC_SETVALUE_HH_ */