Panda3D
Loading...
Searching...
No Matches
dcSubatomicType.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 dcSubatomicType.h
10 * @author drose
11 * @date 2000-10-05
12 */
13
14#ifndef DCSUBATOMICTYPE_H
15#define DCSUBATOMICTYPE_H
16
17#include "dcbase.h"
18
19BEGIN_PUBLISH
20/**
21 * This defines the numeric type of each element of a DCAtomicField; that is,
22 * the particular values that will get added to the message when the atomic
23 * field method is called.
24 */
26 ST_int8,
27 ST_int16,
28 ST_int32,
29 ST_int64,
30
31 ST_uint8,
32 ST_uint16,
33 ST_uint32,
34 ST_uint64,
35
36 ST_float64,
37
38 ST_string, // a human-printable string
39 ST_blob, // any variable length message, stored as a string
40 ST_blob32, // a blob with a 32-bit length, up to 4.2 GB long
41 ST_int16array,
42 ST_int32array,
43 ST_uint16array,
44 ST_uint32array,
45
46 ST_int8array,
47 ST_uint8array,
48
49 // A special-purpose array: a list of alternating uint32 and uint8 values.
50 // In Python, this becomes a list of 2-tuples.
51 ST_uint32uint8array,
52
53 // Equivalent to uint8, except that it suggests a pack_type of PT_string.
54 ST_char,
55
56 // New additions should be added at the end to prevent the file hash code
57 // from changing.
58
59 ST_invalid
60};
61END_PUBLISH
62
63std::ostream &operator << (std::ostream &out, DCSubatomicType type);
64
65#endif
DCSubatomicType
This defines the numeric type of each element of a DCAtomicField; that is, the particular values that...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.