MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/technological/adapter/ValueEndpoint.hh
2024-06-07 11:12:56 +03:00

36 lines
849 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.

/*
* 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_ */