00001
00028 #ifndef __DTI_DEVICE_HH__
00029 #define __DTI_DEVICE_HH__
00030
00031
00032 #include <iostream>
00033 #include <string>
00034 #include <global-types.h>
00035 #include <accdevice.hh>
00036 #include <vmedevice.hh>
00037 #include <dti-dev-def.hh>
00038
00039
00040
00041 namespace DeviceAccess
00042 {
00043 namespace EqModDTI
00044 {
00046 class DTIDevice : public VmeDevice
00047 {
00048 private:
00050 DevDataType* _devDataP;
00052 DevConstDesc _devConst;
00053
00054 void readDevConst();
00055
00056 public:
00057
00061 explicit DTIDevice(const string& nomen);
00062
00064 ~DTIDevice() {};
00065
00071 void setDevDataP();
00072
00076 DevDataType* devDataP();
00077
00078 virtual ULong updateDevConst();
00079
00080
00083 void setDevConstants();
00084
00087 ULong copyDevConst(DevConstDesc* from, DevConstDesc* to);
00088
00091 DevConstDesc* devConstP() {return &_devConst;};
00092 };
00093 }
00094 }
00095 #endif // __DCI_DEVICE_HH__
00096