GPIBUSBniInterface.hh
Go to the documentation of this file.00001
00013 #ifndef GPIB_USB_NI_INTERFACE_HH
00014 #define GPIB_USB_NI_INTERFACE_HH
00015
00016
00017
00018 #include <string>
00019
00020 #include "GPIBBaseInterface.hh"
00021
00022
00023 class GPIBUSBniInterface: public GPIBBaseInterface
00024 {
00025 public:
00026
00036 GPIBUSBniInterface(int board_idx, int primary_add, int secondary_add);
00037
00038
00042 virtual ~GPIBUSBniInterface();
00043
00044
00054 virtual bool DoCommand(const std::string& cmd);
00055
00056
00067 virtual bool DoCommand(const std::string& cmd, std::string& answer);
00068
00069
00073 virtual bool IsError();
00074
00075
00080 bool IsListener();
00081
00086 virtual size_t GetErrorCode();
00087
00088
00094 virtual std::string GetErrorMsg();
00095
00096
00100 virtual size_t GetStatusCode();
00101
00102
00108 virtual std::string GetStatusMsg();
00109
00110
00111
00115 inline const int GetUnitDescriptor() const {return f_ud;}
00116
00117
00118
00119 protected:
00120
00128 virtual bool Open();
00129
00130
00138 virtual bool Close();
00139
00140
00148 virtual bool Clear();
00149
00150
00151 private:
00152
00153 int f_ud;
00156 };
00157
00158 #endif // GPIB_USB_NI_INTERFACE_HH
00159