Panda3D
ioPtaDatagramFloat.h
1 // Filename: ioPtaDatagramFloat.h
2 // Created by: charles (10Jul00)
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_FLOAT
16 #define _IO_PTA_DATAGRAM_FLOAT
17 
18 #include "pandabase.h"
19 
20 #include "pointerToArray.h"
21 #include "pta_stdfloat.h"
22 
23 class BamReader;
24 class BamWriter;
25 class Datagram;
26 class DatagramIterator;
27 
28 ////////////////////////////////////////////////////////////////////
29 // Class : IoPtaDatagramFloat
30 // Description : This class is used to read and write a PTA_stdfloat
31 // from a Datagram, in support of Bam. It's not
32 // intended to be constructed; it's just a convenient
33 // place to scope these static methods which should be
34 // called directly.
35 ////////////////////////////////////////////////////////////////////
36 class EXPCL_PANDA_PUTIL IoPtaDatagramFloat {
37 public:
38  static void write_datagram(BamWriter *manager, Datagram &dest, CPTA_stdfloat array);
39  static PTA_stdfloat read_datagram(BamReader *manager, DatagramIterator &source);
40 };
41 
43 
44 #endif // _IO_PTA_DATAGRAM_FLOAT
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_stdfloat 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.