42 lines
969 B
C++
42 lines
969 B
C++
/*
|
||
* FixedConstStatus.hh
|
||
*
|
||
* Created on: 26 мая 2020 г.
|
||
* Author: LeonidTitov
|
||
*/
|
||
|
||
#ifndef UMLIBRARY_APPLICATION_SCHEMATIC_FIXEDCONSTSTATUS_HH_
|
||
#define UMLIBRARY_APPLICATION_SCHEMATIC_FIXEDCONSTSTATUS_HH_
|
||
|
||
#include "../ISetupStep.hh"
|
||
|
||
namespace application { namespace schematic {
|
||
|
||
//!Константный статус.
|
||
struct FixedConstStatus : public ISetupStep {
|
||
|
||
bool input( Environment & env ) { return true; }
|
||
void build( Environment & env );
|
||
|
||
struct Links {
|
||
Environment::SignalId constant; //!<Константный статус.
|
||
};
|
||
|
||
//!Начальные значения.
|
||
struct Setting {
|
||
uint16_t value; //!<Значение константы.
|
||
};
|
||
|
||
const Links & links;
|
||
const Setting & setting;
|
||
|
||
FixedConstStatus( const Links & links, const Setting & setting ) :
|
||
links(links), setting(setting) {}
|
||
};
|
||
|
||
}}
|
||
|
||
|
||
|
||
#endif /* UMLIBRARY_APPLICATION_SCHEMATIC_FIXEDCONSTSTATUS_HH_ */
|