Panda3D
recorderBase.cxx
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file recorderBase.cxx
10  * @author drose
11  * @date 2004-01-24
12  */
13 
14 #include "recorderBase.h"
15 
16 TypeHandle RecorderBase::_type_handle;
17 
18 /**
19  *
20  */
21 RecorderBase::
22 RecorderBase() {
23  _flags = 0;
24 }
25 
26 /**
27  *
28  */
29 RecorderBase::
30 ~RecorderBase() {
31  nassertv(_flags == 0);
32 }
33 
34 /**
35  * Records the most recent data collected into the indicated datagram.
36  */
37 void RecorderBase::
39 }
40 
41 /**
42  * Reloads the most recent data collected from the indicated datagram.
43  */
44 void RecorderBase::
46 }
47 
48 /**
49  * Writes the contents of this object to the datagram for encoding in the
50  * session file. This is very similar to write_datagram() for TypedWritable
51  * objects, but it is used specifically to write the Recorder object when
52  * generating the session file. In many cases, it will be the same as
53  * write_datagram().
54  *
55  * This balances with fillin_recorder().
56  */
57 void RecorderBase::
59 }
60 
61 /**
62  * This internal function is called by make_recorder (in derived classes) to
63  * read in all of the relevant data from the session file. It balances with
64  * write_recorder().
65  */
66 void RecorderBase::
67 fillin_recorder(DatagramIterator &, BamReader *) {
68 }
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
Definition: bamReader.h:110
virtual void play_frame(DatagramIterator &scan, BamReader *manager)
Reloads the most recent data collected from the indicated datagram.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
Definition: bamWriter.h:63
virtual void record_frame(BamWriter *manager, Datagram &dg)
Records the most recent data collected into the indicated datagram.
virtual void write_recorder(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for encoding in the session file.
A class to retrieve the individual data elements previously stored in a Datagram.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
Definition: datagram.h:38