00001 // Filename: ioPtaDatagramShort.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_SHORT 00016 #define _IO_PTA_DATAGRAM_SHORT 00017 00018 #include "pandabase.h" 00019 00020 #include "pointerToArray.h" 00021 #include "pta_ushort.h" 00022 00023 class BamReader; 00024 class BamWriter; 00025 class Datagram; 00026 class DatagramIterator; 00027 00028 //////////////////////////////////////////////////////////////////// 00029 // Class : IoPtaDatagramShort 00030 // Description : This class is used to read and write a PTA_ushort 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 IoPtaDatagramShort { 00037 public: 00038 static void write_datagram(BamWriter *manager, Datagram &dest, CPTA_ushort array); 00039 static PTA_ushort read_datagram(BamReader *manager, DatagramIterator &source); 00040 }; 00041 00042 typedef IoPtaDatagramShort IPD_ushort; 00043 00044 #endif