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

TangoGpibLink.h

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

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