Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef TSCANNER_IO_H
Toshihiro Shimizu 890ddd
#define TSCANNER_IO_H
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class TScannerIO {
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  TScannerIO() {}
Shinya Kitaoka 120a6e
  virtual bool open()  = 0;
Shinya Kitaoka 120a6e
  virtual void close() = 0;
Shinya Kitaoka 120a6e
  virtual int receive(unsigned char *buffer, int size) = 0;
Shinya Kitaoka 120a6e
  virtual int send(unsigned char *buffer, int size)    = 0;
Shinya Kitaoka 120a6e
  virtual void trace(bool on) = 0;
Shinya Kitaoka 120a6e
  virtual ~TScannerIO() {}
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
#endif