14 #ifndef FLTRECORDWRITER_H
15 #define FLTRECORDWRITER_H
37 const Datagram &get_datagram()
const;
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
This class writes a sequence of FltRecords to an ostream, handling opcode and size counts properly.
void set_datagram(const Datagram &datagram)
Sets the datagram that will be written when advance() is called.
FltError write_instance_def(FltHeader *header, int instance_index)
Ensures that the given instance definition has already been written to the file.
void set_opcode(FltOpcode opcode)
Sets the opcode associated with the current record.
FltError advance()
Writes the current record to the flt file, and resets the current record to receive new data.
FltError write_record(FltOpcode opcode, const Datagram &datagram=Datagram())
A convenience function to quickly write a simple record that consists of an opcode and possibly a dat...
Datagram & update_datagram()
Returns a modifiable reference to the datagram associated with the current record.
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.