|
Revision 13041, 1.4 kB
(checked in by robert, 14 months ago)
|
|
Ran script to remove trailing spaces and tabs
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | #ifndef FLT_RECORDINPUTSTREAM_H |
|---|
| 21 | #define FLT_RECORDINPUTSTREAM_H 1 |
|---|
| 22 | |
|---|
| 23 | #include "Record.h" |
|---|
| 24 | #include "DataInputStream.h" |
|---|
| 25 | |
|---|
| 26 | namespace flt { |
|---|
| 27 | |
|---|
| 28 | class Document; |
|---|
| 29 | |
|---|
| 30 | typedef int opcode_type; |
|---|
| 31 | typedef std::streamsize size_type; |
|---|
| 32 | |
|---|
| 33 | class RecordInputStream : public DataInputStream |
|---|
| 34 | { |
|---|
| 35 | public: |
|---|
| 36 | |
|---|
| 37 | explicit RecordInputStream(std::streambuf* sb); |
|---|
| 38 | |
|---|
| 39 | bool readRecord(Document&); |
|---|
| 40 | bool readRecordBody(opcode_type, size_type, Document&); |
|---|
| 41 | |
|---|
| 42 | inline std::streamsize getRecordSize() const { return _recordSize; } |
|---|
| 43 | inline std::streamsize getRecordBodySize() const { return _recordSize-(std::streamsize)4; } |
|---|
| 44 | |
|---|
| 45 | protected: |
|---|
| 46 | |
|---|
| 47 | std::streamsize _recordSize; |
|---|
| 48 | }; |
|---|
| 49 | |
|---|
| 50 | } |
|---|
| 51 | |
|---|
| 52 | #endif |
|---|