36 lines
845 B
C++
36 lines
845 B
C++
|
|
/*
|
|||
|
|
* ValueEndpoint.hh
|
|||
|
|
*
|
|||
|
|
* Created on: 9 <EFBFBD><EFBFBD><EFBFBD>. 2020 <EFBFBD>.
|
|||
|
|
* 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_ */
|