00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef _TANGO_SERIAL_LINK_H_
00015 #define _TANGO_SERIAL_LINK_H_
00016
00017
00018
00019
00020 #include <tango.h>
00021 #include <DeviceProxyHelper.h>
00022 #include "CommunicationLink.h"
00023
00036 class TangoSerialLink : public CommunicationLink
00037 {
00038
00039 public :
00043 TangoSerialLink (std::string& serial_device_name);
00044
00048 virtual ~TangoSerialLink (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
00072 private :
00076 void create_serial_proxy(void) throw (Tango::DevFailed);
00077
00078 Tango::DeviceProxyHelper* _serial_proxy;
00079
00080 bool _is_serial_proxy_created;
00081
00082 std::string response;
00083
00084 };
00085
00087
00088 #endif // _TANGO_SERIAL_LINK_H_