00001 00002 00003 00004 00005 00006 00007
00008 #ifdef _HAVE_NIENET_
00009 #ifndef GPIB_ENET_h
00010 #define GPIB_ENET_h
00011
00012 #include "GPIBController.h"
00013 #include "LibGPIB.h"
00014
00015 extern "C++" {
00016 namespace LibGPIB {
00023 class GPIB_ENET : public GPIBController {
00024 public:
00032 virtual void BecomeActiveController(bool synchronously=true) ;
00033
00039 virtual void ClearDevice(GPIBEquipment &device) ;
00040
00045 virtual void SendCommand(GPIBEquipment &device, const string command) ;
00046
00051 virtual const string ReadData(GPIBEquipment &device) ;
00052
00056 virtual void SetLocal(GPIBEquipment &device) ;
00057
00062
00063
00068 virtual void EOSModeChar(int mode, char eos='\n') ;
00069
00077
00078
00082 GPIB_ENET (const string board="gpib0") ;
00083
00087 virtual ~GPIB_ENET() ;
00088 private:
00092 int mDeviceID ;
00093
00097 string mBoardName ;
00098
00099 int msgBuffSize ;
00100 char *msgBuffer ;
00101 protected:
00102 } ;
00103
00104 inline
00105 GPIB_ENET::~GPIB_ENET() {
00106 if( msgBuffer )
00107 delete [] msgBuffer ;
00108 }
00109
00110 inline
00111 void GPIB_ENET::SetLocal(GPIBEquipment &device) {
00112 00113 00114
00115 }
00116 }
00117 }
00118
00119 #endif
00120 #endif
00121
00122