Mercurial > hg > x
view TStream.h @ 1:6422640a802f
first upload
author | Wen X <xue.wen@elec.qmul.ac.uk> |
---|---|
date | Tue, 05 Oct 2010 10:45:57 +0100 |
parents | |
children |
line wrap: on
line source
#ifndef TSTREAM_H #define TSTREAM_H /* TStream.h - a stream I/O interface without implementation. This file is included to allow compiling relevent functions that uses Borland VCL's TStream class for abstract I/O purposes. */ enum TSeekOrigin {soFromBeginning, soFromCurrent, soFromEnd}; class TStream { public: TStream(); ~TStream(); int Read(void*, int){return 0;} int Write(void*, int){return 0;} int Seek(int, TSeekOrigin){return Position;} int Position; }; #endif // TSTREAM_H