Panda3D
cycleData.cxx
1 // Filename: cycleData.cxx
2 // Created by: drose (21Feb02)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "cycleData.h"
16 
17 
18 ////////////////////////////////////////////////////////////////////
19 // Function: CycleData::Destructor
20 // Access: Public, Virtual
21 // Description:
22 ////////////////////////////////////////////////////////////////////
23 CycleData::
24 ~CycleData() {
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: CycleData::write_datagram
29 // Access: Public, Virtual
30 // Description: Writes the contents of this object to the datagram
31 // for shipping out to a Bam file.
32 ////////////////////////////////////////////////////////////////////
33 void CycleData::
35 }
36 
37 ////////////////////////////////////////////////////////////////////
38 // Function: CycleData::write_datagram
39 // Access: Public, Virtual
40 // Description: Writes the contents of this object to the datagram
41 // for shipping out to a Bam file.
42 ////////////////////////////////////////////////////////////////////
43 void CycleData::
44 write_datagram(BamWriter *, Datagram &, void *) const {
45 }
46 
47 ////////////////////////////////////////////////////////////////////
48 // Function: CycleData::complete_pointers
49 // Access: Public, Virtual
50 // Description: Receives an array of pointers, one for each time
51 // manager->read_pointer() was called in fillin().
52 // Returns the number of pointers processed.
53 ////////////////////////////////////////////////////////////////////
54 int CycleData::
56  return 0;
57 }
58 
59 ////////////////////////////////////////////////////////////////////
60 // Function: CycleData::fillin
61 // Access: Public, Virtual
62 // Description: This internal function is intended to be called by
63 // each class's make_from_bam() method to read in all of
64 // the relevant data from the BamFile for the new
65 // object.
66 ////////////////////////////////////////////////////////////////////
67 void CycleData::
69 }
70 
71 
72 ////////////////////////////////////////////////////////////////////
73 // Function: CycleData::fillin
74 // Access: Public, Virtual
75 // Description: This internal function is intended to be called by
76 // each class's make_from_bam() method to read in all of
77 // the relevant data from the BamFile for the new
78 // object.
79 ////////////////////////////////////////////////////////////////////
80 void CycleData::
82 }
83 
84 ////////////////////////////////////////////////////////////////////
85 // Function: CycleData::get_parent_type
86 // Access: Public, Virtual
87 // Description: Returns the type of the container that owns the
88 // CycleData. This is useful mainly for debugging.
89 ////////////////////////////////////////////////////////////////////
91 get_parent_type() const {
92  return TypeHandle::none();
93 }
94 
95 ////////////////////////////////////////////////////////////////////
96 // Function: CycleData::output
97 // Access: Public, Virtual
98 // Description: Formats the contents of the CycleData in some
99 // meaningful way for humans. This is useful mainly for
100 // debugging.
101 ////////////////////////////////////////////////////////////////////
102 void CycleData::
103 output(ostream &out) const {
104  out << get_parent_type() << "::CData";
105 }
static TypeHandle none()
Returns a special zero-valued TypeHandle that is used to indicate no type.
Definition: typeHandle.I:274
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
Definition: bamReader.h:122
virtual void output(ostream &out) const
Formats the contents of the CycleData in some meaningful way for humans.
Definition: cycleData.cxx:103
Base class for objects that can be written to and read from Bam files.
Definition: typedWritable.h:37
virtual TypeHandle get_parent_type() const
Returns the type of the container that owns the CycleData.
Definition: cycleData.cxx:91
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
Definition: bamWriter.h:73
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:34
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:55
virtual void fillin(DatagramIterator &scan, BamReader *manager)
This internal function is intended to be called by each class&#39;s make_from_bam() method to read in all...
Definition: cycleData.cxx:68
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:85
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
Definition: datagram.h:43