Panda3D
ioPtaDatagramInt.h
1 // Filename: ioPtaDatagramInt.h
2 // Created by: jason (26Jun00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef _IO_PTA_DATAGRAM_INT
16 #define _IO_PTA_DATAGRAM_INT
17 
18 #include "pandabase.h"
19 
20 #include "pointerToArray.h"
21 #include "pta_int.h"
22 
23 class BamReader;
24 class BamWriter;
25 class Datagram;
26 class DatagramIterator;
27 
28 ////////////////////////////////////////////////////////////////////
29 // Class : IoPtaDatagramInt
30 // Description : This class is used to read and write a PTA_int from a
31 // Datagram, in support of Bam. It's not intended to be
32 // constructed; it's just a convenient place to scope
33 // these static methods which should be called directly.
34 ////////////////////////////////////////////////////////////////////
35 class EXPCL_PANDA_PUTIL IoPtaDatagramInt {
36 public:
37  static void write_datagram(BamWriter *manager, Datagram &dest, CPTA_int array);
38  static PTA_int read_datagram(BamReader *manager, DatagramIterator &source);
39 };
40 
42 
43 #endif
44 
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
Definition: bamReader.h:122
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
Definition: bamWriter.h:73
This class is used to read and write a PTA_int from a Datagram, in support of Bam.
A class to retrieve the individual data elements previously stored in a Datagram. ...
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
Definition: datagram.h:43
Similar to PointerToArray, except that its contents may not be modified.