Panda3D
|
This object contains the header information written out at the beginning of a recorded session file. More...
#include "recorderHeader.h"
Public Member Functions | |
RecorderHeader (const RecorderHeader ©) | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
void | operator= (const RecorderHeader ©) |
virtual void | write_datagram (BamWriter *manager, Datagram &dg) |
Writes the contents of this object to the datagram for shipping out to a Bam file. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. | |
static void | register_with_read_factory () |
Tells the BamReader how to create objects of type Lens. | |
Public Attributes | |
int | _random_seed |
time_t | _start_time |
Protected Member Functions | |
void | fillin (DatagramIterator &scan, BamReader *manager) |
This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new RecorderHeader. | |
Static Protected Member Functions | |
static TypedWritable * | make_from_bam (const FactoryParams ¶ms) |
This function is called by the BamReader's factory when a new object of type Lens is encountered in the Bam file. |
This object contains the header information written out at the beginning of a recorded session file.
Definition at line 33 of file recorderHeader.h.
void RecorderHeader::fillin | ( | DatagramIterator & | scan, |
BamReader * | manager | ||
) | [protected, virtual] |
This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new RecorderHeader.
Reimplemented from TypedWritable.
Definition at line 81 of file recorderHeader.cxx.
References DatagramIterator::get_int32(), and DatagramIterator::get_uint32().
Referenced by make_from_bam().
static void RecorderHeader::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from TypedWritable.
Definition at line 55 of file recorderHeader.h.
References TypedWritable::init_type().
TypedWritable * RecorderHeader::make_from_bam | ( | const FactoryParams & | params | ) | [static, protected] |
This function is called by the BamReader's factory when a new object of type Lens is encountered in the Bam file.
It should create the Lens and extract its information from the file.
Definition at line 62 of file recorderHeader.cxx.
References fillin().
Referenced by register_with_read_factory().
void RecorderHeader::register_with_read_factory | ( | ) | [static] |
Tells the BamReader how to create objects of type Lens.
Definition at line 30 of file recorderHeader.cxx.
References BamReader::get_factory(), make_from_bam(), and Factory< Type >::register_factory().
void RecorderHeader::write_datagram | ( | BamWriter * | manager, |
Datagram & | dg | ||
) | [virtual] |
Writes the contents of this object to the datagram for shipping out to a Bam file.
Reimplemented from TypedWritable.
Definition at line 41 of file recorderHeader.cxx.
References Datagram::add_int32(), and Datagram::add_uint32().