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