36 lines
849 B
C++
36 lines
849 B
C++
/*
|
||
* ValueEndpoint.hh
|
||
*
|
||
* Created on: 9 июн. 2020 г.
|
||
* Author: LeonidTitov
|
||
*/
|
||
|
||
#ifndef UMLIBRARY_TECHNOLOGICAL_ADAPTER_VALUEENDPOINT_HH_
|
||
#define UMLIBRARY_TECHNOLOGICAL_ADAPTER_VALUEENDPOINT_HH_
|
||
|
||
#include "ControlSystemWrapper.hpp"
|
||
|
||
#include "../../processing/acs/VectorAsyncInterface.hh"
|
||
|
||
namespace technological { namespace adapter {
|
||
|
||
struct OnValueEndpointConnect {
|
||
void operator()( vector::ITechValue * endpoint ) {
|
||
//endpoint->set( control::Value( 0.0f ) );
|
||
}
|
||
};
|
||
|
||
struct OnValueEndpointDisconnect {
|
||
void operator()( vector::ITechValue * endpoint ) {
|
||
endpoint->set( control::Value( 0.0f ) );
|
||
}
|
||
};
|
||
|
||
typedef EndpointWrapper<vector::ITechValue, vector::ITechValue, OnValueEndpointConnect, OnValueEndpointDisconnect> ValueEndpoint;
|
||
|
||
}}
|
||
|
||
|
||
|
||
#endif /* UMLIBRARY_TECHNOLOGICAL_ADAPTER_VALUEENDPOINT_HH_ */
|