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
Toshihiro Shimizu 890ddd
class TScannerIO
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
public:
Toshihiro Shimizu 890ddd
	TScannerIO() {}
Toshihiro Shimizu 890ddd
	virtual bool open() = 0;
Toshihiro Shimizu 890ddd
	virtual void close() = 0;
Toshihiro Shimizu 890ddd
	virtual int receive(unsigned char *buffer, int size) = 0;
Toshihiro Shimizu 890ddd
	virtual int send(unsigned char *buffer, int size) = 0;
Toshihiro Shimizu 890ddd
	virtual void trace(bool on) = 0;
Toshihiro Shimizu 890ddd
	virtual ~TScannerIO() {}
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
#endif