Go to the documentation of this file.
14 #ifndef FLTRECORDREADER_H
15 #define FLTRECORDREADER_H
40 FltError
advance(
bool ok_eof =
false);
46 void read_next_header();
55 FltOpcode _next_opcode;
56 int _next_record_length;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bool eof() const
Returns true if end-of-file has been reached without error.
This class turns an istream into a sequence of FltRecords by reading a sequence of Datagrams and extr...
A class to retrieve the individual data elements previously stored in a Datagram.
FltOpcode get_opcode() const
Returns the opcode associated with the current record.
const Datagram & get_datagram()
Returns the datagram representing the entire record, less the four-byte header.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
DatagramIterator & get_iterator()
Returns an iterator suitable for extracting data from the current record.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
int get_record_length() const
Returns the entire length of the record, including the four-byte header.
FltError advance(bool ok_eof=false)
Extracts the next record from the file.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bool error() const
Returns true if some error has been encountered while reading (for instance, a truncated file).