46class EXPCL_PANDA_RECORDER RecorderBase {
51 virtual ~RecorderBase();
64 virtual int get_ref_count()
const=0;
65 virtual void ref()
const=0;
66 virtual bool unref()
const=0;
82 static void init_type() {
83 ReferenceCount::init_type();
85 ReferenceCount::get_class_type());
88 return get_class_type();
94 friend class RecorderController;
95 friend class RecorderTable;
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
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 ...
bool is_playing() const
Returns true if this recorder is presently playing back data from session file, false otherwise.
bool is_recording() const
Returns true if this recorder is presently recording data for saving to a session file,...
virtual void write_recorder(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for encoding in the session file.
virtual void play_frame(DatagramIterator &scan, BamReader *manager)
Reloads the most recent data collected from the indicated datagram.
virtual void record_frame(BamWriter *manager, Datagram &dg)
Records the most recent data collected into the indicated datagram.
TypeHandle is the identifier used to differentiate C++ class types.
Base class for objects that can be written to and read from Bam files.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...