Panda3D
|
00001 // Filename: datagramGenerator.cxx 00002 // Created by: jason (07Jun00) 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 00016 #include "pandabase.h" 00017 00018 #include "datagramGenerator.h" 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Function: DatagramGenerator::Destructor 00022 // Access: Public, Virtual 00023 // Description: Does nothing since this is class is just 00024 // the definition of an interface 00025 //////////////////////////////////////////////////////////////////// 00026 DatagramGenerator:: 00027 ~DatagramGenerator() { 00028 } 00029 00030 //////////////////////////////////////////////////////////////////// 00031 // Function: DatagramGenerator::get_file 00032 // Access: Public, Virtual 00033 // Description: Returns the VirtualFile that provides the source for 00034 // these datagrams, if any, or NULL if the datagrams do 00035 // not originate from a VirtualFile. 00036 //////////////////////////////////////////////////////////////////// 00037 VirtualFile *DatagramGenerator:: 00038 get_file() { 00039 return NULL; 00040 } 00041 00042 //////////////////////////////////////////////////////////////////// 00043 // Function: DatagramGenerator::get_file_pos 00044 // Access: Public, Virtual 00045 // Description: Returns the current file position within the data 00046 // stream, if any, or 0 if the file position is not 00047 // meaningful or cannot be determined. 00048 // 00049 // For DatagramGenerators that return a meaningful file 00050 // position, this will be pointing to the first byte 00051 // following the datagram returned after a call to 00052 // get_datagram(). 00053 //////////////////////////////////////////////////////////////////// 00054 streampos DatagramGenerator:: 00055 get_file_pos() { 00056 return 0; 00057 }