mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
26 lines
381 B
C
26 lines
381 B
C
|
|
/*
|
||
|
|
* IOStream.h
|
||
|
|
*
|
||
|
|
* Created on: Sep 27, 2012
|
||
|
|
* Author: Mitchell Wills
|
||
|
|
*/
|
||
|
|
|
||
|
|
#ifndef IOSTREAM_H_
|
||
|
|
#define IOSTREAM_H_
|
||
|
|
|
||
|
|
class IOStream;
|
||
|
|
|
||
|
|
class IOStream
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
virtual ~IOStream()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
virtual int read(void* ptr, int numbytes) = 0;
|
||
|
|
virtual int write(const void* ptr, int numbytes) = 0;
|
||
|
|
virtual void flush() = 0;
|
||
|
|
virtual void close() = 0;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif /* IOSTREAM_H_ */
|