Panda3D
Loading...
Searching...
No Matches
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
16TypeHandle RecorderBase::_type_handle;
17
18/**
19 *
20 */
21RecorderBase::
22RecorderBase() {
23 _flags = 0;
24}
25
26/**
27 *
28 */
29RecorderBase::
30~RecorderBase() {
31 nassertv(_flags == 0);
32}
33
34/**
35 * Records the most recent data collected into the indicated datagram.
36 */
40
41/**
42 * Reloads the most recent data collected from the indicated datagram.
43 */
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 */
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 */
66void RecorderBase::
67fillin_recorder(DatagramIterator &, BamReader *) {
68}
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
Definition bamReader.h:110
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
Definition bamWriter.h:63
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 ...
Definition datagram.h:38
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.
Definition typeHandle.h:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.