36 lines
946 B
C++
36 lines
946 B
C++
|
|
/*
|
|||
|
|
* PhaseSpaceEndpoint.hh
|
|||
|
|
*
|
|||
|
|
* Created on: 9 <EFBFBD><EFBFBD><EFBFBD>. 2020 <EFBFBD>.
|
|||
|
|
* Author: LeonidTitov
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#ifndef UMLIBRARY_TECHNOLOGICAL_ADAPTER_PHASESPACEENDPOINT_HH_
|
|||
|
|
#define UMLIBRARY_TECHNOLOGICAL_ADAPTER_PHASESPACEENDPOINT_HH_
|
|||
|
|
|
|||
|
|
#include "ControlSystemWrapper.hpp"
|
|||
|
|
|
|||
|
|
#include "../../processing/acs/VectorAsyncInterface.hh"
|
|||
|
|
|
|||
|
|
namespace technological { namespace adapter {
|
|||
|
|
|
|||
|
|
struct OnPhaseSpaceEndpointConnect {
|
|||
|
|
void operator()( vector::IPhaseSpaceValue * endpoint ) {
|
|||
|
|
//endpoint->set( control::PhaseSpaceValue( 0.0f, 0.0f ) );
|
|||
|
|
}
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
struct OnPhaseSpaceEndpointDisconnect {
|
|||
|
|
void operator()( vector::IPhaseSpaceValue * endpoint ) {
|
|||
|
|
endpoint->set( control::PhaseSpaceValue( 0.0f, 0.0f ) );
|
|||
|
|
}
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
typedef EndpointWrapper<vector::IPhaseSpaceValue, vector::IPhaseSpaceValue, OnPhaseSpaceEndpointConnect, OnPhaseSpaceEndpointDisconnect> PhaseSpaceEndpoint;
|
|||
|
|
|
|||
|
|
}}
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
#endif /* UMLIBRARY_TECHNOLOGICAL_ADAPTER_PHASESPACEENDPOINT_HH_ */
|