1 #ifndef __AXIS_ADAPTER_H__
2 #define __AXIS_ADAPTER_H__
5 #include <hkl/hkl-axis.h>
7 namespace Diffractometer_ns
{
10 class TangoHKLAdapter
;
14 friend class TangoHKLAdapter
;
17 AxisAdapter(TangoHKLAdapter
* hklAdapter
, HklAxis
*axis_r
, HklAxis
*axis_w
,
18 HklAxis
*axis_r_real
, HklAxis
*axis_w_real
);
20 virtual ~AxisAdapter(void);
22 std::string
const get_name(void) const;
24 std::string
const & get_device_name(void) const {return _device_name
;}
26 Tango::DevState
const & get_state(void) const {return _state
;}
27 void set_state(Tango::DevState
const & state
) {_state
= state
;}
29 bool const is_ready(void) const;
31 double const & get_read(void) const {return _read
;}
33 double const & get_read_real(void) const {return _read_real
;}
35 double const & get_write(void) const {return _write
;}
37 double const & get_write_real(void) const {return _write_real
;}
39 void write(double value
);
41 void from_HklAxis(void);
44 TangoHKLAdapter
* _hklAdapter
;
45 std::string _device_name
;
46 Tango::DeviceProxy
*_proxy
;
49 HklAxis
*_axis_r_real
;
50 HklAxis
*_axis_w_real
;
57 Tango::DevState _state
; // state of axe
59 Tango::Group
*connect(std::string
const & device_name
);
61 void to_HklAxis(void);
63 void from_proxy(bool simulated
);
69 #endif// __Axis_Adapter_H__