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;
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 ...
This class turns an istream into a sequence of FltRecords by reading a sequence of Datagrams and extr...
FltOpcode get_opcode() const
Returns the opcode associated with the current record.
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.
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.
FltError advance(bool ok_eof=false)
Extracts the next record from the file.
const Datagram & get_datagram()
Returns the datagram representing the entire record, less the four-byte header.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.