Panda3D

ioPtaDatagramInt.h

00001 // Filename: ioPtaDatagramInt.h
00002 // Created by:  jason (26Jun00)
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 #ifndef _IO_PTA_DATAGRAM_INT
00016 #define _IO_PTA_DATAGRAM_INT
00017 
00018 #include "pandabase.h"
00019 
00020 #include "pointerToArray.h"
00021 #include "pta_int.h"
00022 
00023 class BamReader;
00024 class BamWriter;
00025 class Datagram;
00026 class DatagramIterator;
00027 
00028 ////////////////////////////////////////////////////////////////////
00029 //       Class : IoPtaDatagramInt
00030 // Description : This class is used to read and write a PTA_int from a
00031 //               Datagram, in support of Bam.  It's not intended to be
00032 //               constructed; it's just a convenient place to scope
00033 //               these static methods which should be called directly.
00034 ////////////////////////////////////////////////////////////////////
00035 class EXPCL_PANDA_PUTIL IoPtaDatagramInt {
00036 public:
00037   static void write_datagram(BamWriter *manager, Datagram &dest, CPTA_int array);
00038   static PTA_int read_datagram(BamReader *manager, DatagramIterator &source);
00039 };
00040 
00041 typedef IoPtaDatagramInt IPD_int;
00042 
00043 #endif
00044 
 All Classes Functions Variables Enumerations