15 #ifndef FLTRECORDREADER_H 16 #define FLTRECORDREADER_H 18 #include "pandatoolbase.h" 20 #include "fltOpcode.h" 24 #include "datagramIterator.h" 44 FltError
advance(
bool ok_eof =
false);
50 void read_next_header();
59 FltOpcode _next_opcode;
60 int _next_record_length;
This class turns an istream into a sequence of FltRecords by reading a sequence of Datagrams and extr...
bool error() const
Returns true if some error has been encountered while reading (for instance, a truncated file)...
DatagramIterator & get_iterator()
Returns an iterator suitable for extracting data from the current record.
const Datagram & get_datagram()
Returns the datagram representing the entire record, less the four-byte header.
FltOpcode get_opcode() const
Returns the opcode associated with the current record.
A class to retrieve the individual data elements previously stored in a Datagram. ...
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
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.
int get_record_length() const
Returns the entire length of the record, including the four-byte header.