Panda3D
ioPtaDatagramInt.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file ioPtaDatagramInt.h
10  * @author jason
11  * @date 2000-06-26
12  */
13 
14 #ifndef _IO_PTA_DATAGRAM_INT
15 #define _IO_PTA_DATAGRAM_INT
16 
17 #include "pandabase.h"
18 
19 #include "pointerToArray.h"
20 #include "pta_int.h"
21 
22 class BamReader;
23 class BamWriter;
24 class Datagram;
25 class DatagramIterator;
26 
27 /**
28  * This class is used to read and write a PTA_int from a Datagram, in support
29  * of Bam. It's not intended to be constructed; it's just a convenient place
30  * to scope these static methods which should be called directly.
31  */
32 class EXPCL_PANDA_PUTIL IoPtaDatagramInt {
33 public:
34  static void write_datagram(BamWriter *manager, Datagram &dest, CPTA_int array);
35  static PTA_int read_datagram(BamReader *manager, DatagramIterator &source);
36 };
37 
39 
40 #endif
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
Definition: bamReader.h:110
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
Definition: bamWriter.h:63
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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:38
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Similar to PointerToArray, except that its contents may not be modified.