15 #ifndef FLTRECORDWRITER_H
16 #define FLTRECORDWRITER_H
18 #include "pandatoolbase.h"
20 #include "fltOpcode.h"
39 const Datagram &get_datagram()
const;
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.
FltError advance()
Writes the current record to the flt file, and resets the current record to receive new data...
void set_opcode(FltOpcode opcode)
Sets the opcode associated with the current record.
Datagram & update_datagram()
Returns a modifiable reference to the datagram associated with the current record.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
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...