14#ifndef RECORDERTABLE_H
15#define RECORDERTABLE_H
32class EXPCL_PANDA_RECORDER RecorderTable :
public TypedWritable {
34 INLINE RecorderTable();
35 INLINE RecorderTable(
const RecorderTable ©);
36 INLINE
void operator = (
const RecorderTable ©);
50 void write(std::ostream &out,
int indent_level)
const;
55 typedef pmap<std::string, RecorderBase*> Recorders;
65 static TypedWritable *make_from_bam(
const FactoryParams ¶ms);
72 static void init_type() {
73 TypedWritable::init_type();
75 TypedWritable::get_class_type());
78 return get_class_type();
80 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
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 ...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
This is the base class to a number of objects that record particular kinds of user input (like a Mous...
void add_recorder(const std::string &name, RecorderBase *recorder)
Adds the named recorder to the set of recorders.
void record_frame(BamWriter *manager, Datagram &dg)
Calls record_frame on all recorders.
void merge_from(const RecorderTable &other)
Combines the data in the current table (presumably just read from disk, and matching exactly with the...
static void register_with_read_factory()
Tells the BamReader how to create objects of type Lens.
void play_frame(DatagramIterator &scan, BamReader *manager)
Calls play_frame on all recorders.
bool remove_recorder(const std::string &name)
Removes the named recorder from the table.
RecorderBase * get_recorder(const std::string &name) const
Returns the recorder with the indicated name, or NULL if there is no such recorder.
void set_flags(short flags)
Sets the given flags on all recorders.
void clear_flags(short flags)
Clears the given flags on all recorders.
TypeHandle is the identifier used to differentiate C++ class types.
virtual void fillin(DatagramIterator &scan, BamReader *manager)
This internal function is intended to be called by each class's make_from_bam() method to read in all...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
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.
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(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.