add pty-gpib-emulator from github
This commit is contained in:
35
pty-gpib-emulator/c++/PTY_Interface.h
Normal file
35
pty-gpib-emulator/c++/PTY_Interface.h
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
|
||||
#ifndef PTY_INTERFACE
|
||||
#define PTY_INTERFACE
|
||||
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
class Interface;
|
||||
|
||||
#include "Device.h"
|
||||
using namespace std;
|
||||
|
||||
class Interface {
|
||||
public:
|
||||
map<int, Device*> devices;
|
||||
int addr, m, s;
|
||||
bool running;
|
||||
string pname;
|
||||
|
||||
Interface(Device *default_device=NULL,
|
||||
int default_address=0);
|
||||
~Interface();
|
||||
|
||||
string printFilename();
|
||||
void run(int readLen=100);
|
||||
|
||||
vector<string> handleInput(string tty_in);
|
||||
void addDevice(Device *dev, int addr);
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user