Imported Upstream version 2.9.0
[debian/cc1111] / sim / ucsim / gui.src / serio.src / fileio.hh
1 /******************************************************************************
2  * to emulate the serial input and output of an 8051 controller               *
3  * fileio.hh - file input and output                                          *
4  ******************************************************************************/
5 #include "config.h"
6
7 class FileIO
8 {
9         public:
10                 FileIO();
11                 FileIO(char *infile, char *outfile);
12                 ~FileIO();
13
14                 int SendByte(char b);
15                 int RecvByte(char *b);
16                 int SendStr(char *str);
17                 int RecvStr(char *str);
18
19         private:
20                 int fdin;
21                 int fdout;
22 };