Panda3D
cycleData.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 cycleData.cxx
10  * @author drose
11  * @date 2002-02-21
12  */
13 
14 #include "cycleData.h"
15 
16 #ifdef DO_PIPELINING
17 TypeHandle CycleData::_type_handle;
18 #endif
19 
20 /**
21  *
22  */
23 CycleData::
24 ~CycleData() {
25 }
26 
27 /**
28  * Writes the contents of this object to the datagram for shipping out to a
29  * Bam file.
30  */
31 void CycleData::
33 }
34 
35 /**
36  * Writes the contents of this object to the datagram for shipping out to a
37  * Bam file.
38  */
39 void CycleData::
40 write_datagram(BamWriter *, Datagram &, void *) const {
41 }
42 
43 /**
44  * Receives an array of pointers, one for each time manager->read_pointer()
45  * was called in fillin(). Returns the number of pointers processed.
46  */
47 int CycleData::
49  return 0;
50 }
51 
52 /**
53  * This internal function is intended to be called by each class's
54  * make_from_bam() method to read in all of the relevant data from the BamFile
55  * for the new object.
56  */
57 void CycleData::
59 }
60 
61 
62 /**
63  * This internal function is intended to be called by each class's
64  * make_from_bam() method to read in all of the relevant data from the BamFile
65  * for the new object.
66  */
67 void CycleData::
69 }
70 
71 /**
72  * Returns the type of the container that owns the CycleData. This is useful
73  * mainly for debugging.
74  */
76 get_parent_type() const {
77  return TypeHandle::none();
78 }
79 
80 /**
81  * Formats the contents of the CycleData in some meaningful way for humans.
82  * This is useful mainly for debugging.
83  */
84 void CycleData::
85 output(std::ostream &out) const {
86  out << get_parent_type() << "::CData";
87 }
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
Definition: bamReader.h:110
Base class for objects that can be written to and read from Bam files.
Definition: typedWritable.h:35
virtual TypeHandle get_parent_type() const
Returns the type of the container that owns the CycleData.
Definition: cycleData.cxx:76
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
Definition: bamWriter.h:63
virtual void write_datagram(BamWriter *, Datagram &) const
Writes the contents of this object to the datagram for shipping out to a Bam file.
Definition: cycleData.cxx:32
virtual void output(std::ostream &out) const
Formats the contents of the CycleData in some meaningful way for humans.
Definition: cycleData.cxx:85
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual int complete_pointers(TypedWritable **p_list, BamReader *manager)
Receives an array of pointers, one for each time manager->read_pointer() was called in fillin().
Definition: cycleData.cxx:48
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...
Definition: cycleData.cxx:58
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