This class turns an istream into a sequence of FltRecords by reading a sequence of Datagrams and extracting the opcode from each one.
More...
Public Member Functions |
|
| FltRecordReader (istream &in) |
| FltError | advance (bool ok_eof=false) |
| | Extracts the next record from the file.
|
| bool | eof () const |
| | Returns true if end-of-file has been reached without error.
|
| bool | error () const |
| | Returns true if some error has been encountered while reading (for instance, a truncated file).
|
| const Datagram & | get_datagram () |
| | Returns the datagram representing the entire record, less the four-byte header.
|
| DatagramIterator & | get_iterator () |
| | Returns an iterator suitable for extracting data from the current record.
|
| FltOpcode | get_opcode () const |
| | Returns the opcode associated with the current record.
|
| int | get_record_length () const |
| | Returns the entire length of the record, including the four-byte header.
|
This class turns an istream into a sequence of FltRecords by reading a sequence of Datagrams and extracting the opcode from each one.
It remembers where it is in the file and what the current record is.
Definition at line 34 of file fltRecordReader.h.