add pty-gpib-emulator from github

This commit is contained in:
2020-09-09 05:17:31 +00:00
parent 63554da593
commit 3fe71a6f3b
22 changed files with 997 additions and 0 deletions

View 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