00001 #ifndef Connection_h 00002 #define Connection_h 00003 00004 #include "LibGPIB.h" 00005 00006 extern "C++" { 00007 namespace LibGPIB { 00008 class Connection { 00009 public: 00010 /* 00011 * Connect the specified terminal to 00012 * the specified SMU. 00013 */ 00014 virtual void Connect(int terminal, int smu) = 0 ; 00015 00016 /* 00017 * Return the SMU number connected to 00018 * the specified terminal. 00019 */ 00020 virtual int SMU(int terminal) = 0 ; 00021 00024 virtual ~Connection() ; 00025 protected: 00026 private: 00027 } ; /* class Connection */ 00028 00029 inline 00030 Connection::~Connection() { /* empty */ } 00031 } // namepace LibGPIB 00032 } /* extern "C++" */ 00033 00034 #endif /* Connection_h */