00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef _TANGO_GPIB_LINK_H_
00015 #define _TANGO_GPIB_LINK_H_
00016
00017
00018
00019
00020 #include <tango.h>
00021 #include <DeviceProxyHelper.h>
00022 #include "CommunicationLink.h"
00023
00036 class TangoGpibLink : public CommunicationLink
00037 {
00038
00039 public :
00043 TangoGpibLink (std::string& gpib_device_name);
00044
00048 virtual ~TangoGpibLink (void);
00049
00055 void write(std::string cmd) throw (Tango::DevFailed);
00056
00062 std::string read(void) throw (Tango::DevFailed);
00063
00069 std::string write_read(std::string cmd) throw (Tango::DevFailed);
00070
00071 private :
00072
00076 void create_gpib_proxy(void) throw (Tango::DevFailed);
00077
00078 Tango::DeviceProxyHelper* _gpib_proxy;
00079
00080 bool _is_gpib_proxy_created;
00081
00082 std::string response;
00083
00084 };
00085
00087
00088 #endif // _TANGO_GPIB_LINK_H_