Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

TangoSerialLink.h

00001 // ============================================================================
00002 //
00003 // = CONTEXT
00004 //    TANGO Project - Keithley Electrometer Support Library
00005 //
00006 // = FILENAME
00007 //    TangoSerialLink.h
00008 //
00009 // = AUTHOR
00010 //    X. Elattaoui
00011 //
00012 // ============================================================================
00013 
00014 #ifndef _TANGO_SERIAL_LINK_H_
00015 #define _TANGO_SERIAL_LINK_H_
00016 
00017 // ============================================================================
00018 // DEPENDENCIES
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         //- end addtogroup
00087 
00088 #endif // _TANGO_SERIAL_LINK_H_

Generated on Fri Dec 1 15:32:19 2006 for Electrometers Library by  doxygen 1.3.9.1