/* Example programs from the book Scientific and Engineering Programming in C++: An Introduction with Advanced Techniques and Examples, Addison-Wesley, 1994. (c) COPYRIGHT INTERNATIONAL BUSINESS MACHINES CORPORATION 1994. ALL RIGHTS RESERVED. See README file for further details. */ #ifndef GPIBController_StubH #define GPIBController_StubH #include class GPIBController_Stub { public: void insert(const char* device_name, unsigned int address) { cout << "(" << device_name << " now at address " << address << ")" << endl; } void send(unsigned int address, const char* cmd) { cout << "(" << "GPIB instrument #" << address << " sends " << cmd << ")" << endl; } void send(unsigned int address, float f) { cout << "(" << "GPIB instrument #" << address << " sends value " << f << ")" << endl; } float receive(unsigned int address) { cout << "(" << "Please enter number for GPIB instrument #" << address << ": "; float f; cin >> f; cout << ")" << endl; return f; } }; #endif