Mercurial > hg > x
annotate tstream.h @ 5:5f3c32dc6e17
* Adjust comment syntax to permit Doxygen to generate HTML documentation; add Doxyfile
author | Chris Cannam |
---|---|
date | Wed, 06 Oct 2010 15:19:49 +0100 |
parents | fc19d45615d1 |
children | 9b1c0825cc77 |
rev | line source |
---|---|
xue@1 | 1 #ifndef TSTREAM_H |
xue@1 | 2 #define TSTREAM_H |
xue@1 | 3 |
Chris@5 | 4 /** |
Chris@5 | 5 \file tstream.h - a stream I/O interface without implementation. |
xue@1 | 6 |
xue@1 | 7 This file is included to allow compiling relevent functions that uses Borland VCL's TStream class for |
xue@1 | 8 abstract I/O purposes. |
xue@1 | 9 */ |
xue@1 | 10 |
xue@1 | 11 enum TSeekOrigin {soFromBeginning, soFromCurrent, soFromEnd}; |
xue@1 | 12 class TStream |
xue@1 | 13 { |
xue@1 | 14 public: |
xue@1 | 15 TStream(); |
xue@1 | 16 ~TStream(); |
xue@1 | 17 int Read(void*, int){return 0;} |
xue@1 | 18 int Write(void*, int){return 0;} |
xue@1 | 19 int Seek(int, TSeekOrigin){return Position;} |
xue@1 | 20 int Position; |
xue@1 | 21 }; |
xue@1 | 22 |
xue@1 | 23 #endif // TSTREAM_H |