25 lines
510 B
C++
25 lines
510 B
C++
|
|
/*
|
|||
|
|
* VievValue.cpp
|
|||
|
|
*
|
|||
|
|
* Created on: 12 <EFBFBD><EFBFBD><EFBFBD><EFBFBD>. 2020 <EFBFBD>.
|
|||
|
|
* Author: LeonidTitov
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#include "VievValue.hh"
|
|||
|
|
|
|||
|
|
bool application::schematic::VievValue::input( Environment & env ) {
|
|||
|
|
|
|||
|
|
return show( value, env.rholder.getShared<Value>( links.value ) );
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void application::schematic::VievValue::build( Environment & env ) {
|
|||
|
|
|
|||
|
|
typedef ::schematic::ViewValueAsync<float> View;
|
|||
|
|
|
|||
|
|
View * view = memories::instance_object<View>(env.static_object_ma, *value );
|
|||
|
|
|
|||
|
|
env.signals.add( links.view, view );
|
|||
|
|
|
|||
|
|
}
|