Go to the documentation of this file.
65 if (!FltBead::extract_record(reader)) {
86 return FltBead::extract_ancillary(reader);
96 if (!FltBead::build_record(writer)) {
110 if (_id.length() > 7) {
118 if (result != FE_ok) {
123 return FltBead::write_ancillary(writer);
This class writes a sequence of FltRecords to an ostream, handling opcode and size counts properly.
virtual void output(std::ostream &out) const
Writes a quick one-line description of the record, but not its children.
const std::string & get_id() const
Returns the id (name) of this particular bead.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
TypeHandle is the identifier used to differentiate C++ class types.
void add_fixed_string(const std::string &str, size_t size)
Adds a fixed-length string to the datagram.
DatagramIterator & get_iterator()
Returns an iterator suitable for extracting data from the current record.
Datagram & update_datagram()
Returns a modifiable reference to the datagram associated with the current record.
std::string get_fixed_string(size_t size)
Extracts a fixed-length string.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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...
size_t get_remaining_size() const
Return the bytes left in the datagram.
void set_id(const std::string &id)
Changes the id (name) of this particular bead.
A base class for any of a broad family of flt records that represent particular beads in the hierarch...