Panda3D
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
direct
src
dcparser
dcSubatomicType.h
1
// Filename: dcSubatomicType.h
2
// Created by: drose (05Oct00)
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 DCSUBATOMICTYPE_H
16
#define DCSUBATOMICTYPE_H
17
18
#include "dcbase.h"
19
20
BEGIN_PUBLISH
21
////////////////////////////////////////////////////////////////////
22
// Enum : DCSubatomicType
23
// Description : This defines the numeric type of each element of a
24
// DCAtomicField; that is, the particular values that
25
// will get added to the message when the atomic field
26
// method is called.
27
////////////////////////////////////////////////////////////////////
28
enum
DCSubatomicType {
29
ST_int8,
30
ST_int16,
31
ST_int32,
32
ST_int64,
33
34
ST_uint8,
35
ST_uint16,
36
ST_uint32,
37
ST_uint64,
38
39
ST_float64,
40
41
ST_string,
// a human-printable string
42
ST_blob,
// any variable length message, stored as a string
43
ST_blob32,
// a blob with a 32-bit length, up to 4.2 GB long
44
ST_int16array,
45
ST_int32array,
46
ST_uint16array,
47
ST_uint32array,
48
49
ST_int8array,
50
ST_uint8array,
51
52
// A special-purpose array: a list of alternating uint32 and uint8
53
// values. In Python, this becomes a list of 2-tuples.
54
ST_uint32uint8array,
55
56
// Equivalent to uint8, except that it suggests a pack_type of
57
// PT_string.
58
ST_char,
59
60
// New additions should be added at the end to prevent the file hash
61
// code from changing.
62
63
ST_invalid
64
};
65
END_PUBLISH
66
67
ostream &operator << (ostream &out, DCSubatomicType type);
68
69
#endif
70
71
Generated on Mon Feb 1 2016 13:44:14 for Panda3D by
1.8.5