Panda3D

cycleData.cxx

00001 // Filename: cycleData.cxx
00002 // Created by:  drose (21Feb02)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "cycleData.h"
00016 
00017 
00018 ////////////////////////////////////////////////////////////////////
00019 //     Function: CycleData::Destructor
00020 //       Access: Public, Virtual
00021 //  Description:
00022 ////////////////////////////////////////////////////////////////////
00023 CycleData::
00024 ~CycleData() {
00025 }
00026 
00027 ////////////////////////////////////////////////////////////////////
00028 //     Function: CycleData::write_datagram
00029 //       Access: Public, Virtual
00030 //  Description: Writes the contents of this object to the datagram
00031 //               for shipping out to a Bam file.
00032 ////////////////////////////////////////////////////////////////////
00033 void CycleData::
00034 write_datagram(BamWriter *, Datagram &) const {
00035 }
00036 
00037 ////////////////////////////////////////////////////////////////////
00038 //     Function: CycleData::write_datagram
00039 //       Access: Public, Virtual
00040 //  Description: Writes the contents of this object to the datagram
00041 //               for shipping out to a Bam file.
00042 ////////////////////////////////////////////////////////////////////
00043 void CycleData::
00044 write_datagram(BamWriter *, Datagram &, void *) const {
00045 }
00046 
00047 ////////////////////////////////////////////////////////////////////
00048 //     Function: CycleData::complete_pointers
00049 //       Access: Public, Virtual
00050 //  Description: Receives an array of pointers, one for each time
00051 //               manager->read_pointer() was called in fillin().
00052 //               Returns the number of pointers processed.
00053 ////////////////////////////////////////////////////////////////////
00054 int CycleData::
00055 complete_pointers(TypedWritable **, BamReader *) {
00056   return 0;
00057 }
00058 
00059 ////////////////////////////////////////////////////////////////////
00060 //     Function: CycleData::fillin
00061 //       Access: Public, Virtual
00062 //  Description: This internal function is intended to be called by
00063 //               each class's make_from_bam() method to read in all of
00064 //               the relevant data from the BamFile for the new
00065 //               object.
00066 ////////////////////////////////////////////////////////////////////
00067 void CycleData::
00068 fillin(DatagramIterator &, BamReader *) {
00069 }
00070 
00071 
00072 ////////////////////////////////////////////////////////////////////
00073 //     Function: CycleData::fillin
00074 //       Access: Public, Virtual
00075 //  Description: This internal function is intended to be called by
00076 //               each class's make_from_bam() method to read in all of
00077 //               the relevant data from the BamFile for the new
00078 //               object.
00079 ////////////////////////////////////////////////////////////////////
00080 void CycleData::
00081 fillin(DatagramIterator &, BamReader *, void *) {
00082 }
00083 
00084 ////////////////////////////////////////////////////////////////////
00085 //     Function: CycleData::get_parent_type
00086 //       Access: Public, Virtual
00087 //  Description: Returns the type of the container that owns the
00088 //               CycleData.  This is useful mainly for debugging.
00089 ////////////////////////////////////////////////////////////////////
00090 TypeHandle CycleData::
00091 get_parent_type() const {
00092   return TypeHandle::none();
00093 }
00094 
00095 ////////////////////////////////////////////////////////////////////
00096 //     Function: CycleData::output
00097 //       Access: Public, Virtual
00098 //  Description: Formats the contents of the CycleData in some
00099 //               meaningful way for humans.  This is useful mainly for
00100 //               debugging.
00101 ////////////////////////////////////////////////////////////////////
00102 void CycleData::
00103 output(ostream &out) const {
00104   out << get_parent_type() << "::CData";
00105 }
 All Classes Functions Variables Enumerations