* implementation of the set_mode_parameters.
[diffractometer.git] / src / PseudoAxisAdapter.h
blob1bc7f167123215b89d3f95577985da5268c82779
1 #ifndef __PSEUDOAXIS_ADAPTER_H__
2 #define __PSEUDOAXIS_ADAPTER_H__
4 #include <tango.h>
6 #include <hkl/hkl-geometry-factory.h>
7 #include <hkl/hkl-pseudoaxis-factory.h>
9 #include "AxisAdapter.h"
10 #include "Matrix.h"
12 namespace DiffractometerDevice_ns {
14 //forwar declaration
15 class TangoHKLAdapter;
17 class PseudoAxisAdapter {
18 friend class TangoHKLAdapter;
20 public:
21 PseudoAxisAdapter(TangoHKLAdapter & hklAdapter, HklPseudoAxis *pseudo_read, HklPseudoAxis *pseudo_write);
22 virtual ~PseudoAxisAdapter(void);
24 double const & get_read(void) const {return _read;}
25 double const & get_write(void) const {return _write;}
26 Tango::DevState const & get_state(void) const {return _state;}
27 std::string const & get_status(void) const {return _status;}
28 const char* get_mode(void) const {return _mode.c_str();}
29 Matrix<char *> const &get_mode_names(void) const {return _mode_names;}
30 void get_mode_parameters(Tango::DevVarDoubleStringArray *argout);
31 void set_mode_parameters(const Tango::DevVarDoubleStringArray *argin);
32 bool is_ready(void);
33 void set_mode(Tango::DevString const & mode);
34 private:
35 TangoHKLAdapter &_hklAdapter;
36 std::string _devicename;
37 Tango::Group *_group;
38 HklPseudoAxis *_pseudo_r;
39 HklPseudoAxis *_pseudo_w;
40 double _read;
41 double _write;
42 std::vector<AxisAdapter *> _axes;
43 Tango::DevState _state;
44 std::string _status;
45 bool _ready;
46 std::string _mode;
47 Matrix<char *> _mode_names;
49 void update(void);
50 void to_proxies(void);
55 #endif // __PSEUDOAXIS_ADAPTER_H__