Panda3D
dcSubatomicType.cxx
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.cxx
10  * @author drose
11  * @date 2000-10-05
12  */
13 
14 #include "dcSubatomicType.h"
15 
16 std::ostream &
17 operator << (std::ostream &out, DCSubatomicType type) {
18  switch (type) {
19  case ST_int8:
20  return out << "int8";
21 
22  case ST_int16:
23  return out << "int16";
24 
25  case ST_int32:
26  return out << "int32";
27 
28  case ST_int64:
29  return out << "int64";
30 
31  case ST_uint8:
32  return out << "uint8";
33 
34  case ST_uint16:
35  return out << "uint16";
36 
37  case ST_uint32:
38  return out << "uint32";
39 
40  case ST_uint64:
41  return out << "uint64";
42 
43  case ST_float64:
44  return out << "float64";
45 
46  case ST_string:
47  return out << "string";
48 
49  case ST_blob:
50  return out << "blob";
51 
52  case ST_blob32:
53  return out << "blob32";
54 
55  case ST_int8array:
56  return out << "int8array";
57 
58  case ST_int16array:
59  return out << "int16array";
60 
61  case ST_int32array:
62  return out << "int32array";
63 
64  case ST_uint8array:
65  return out << "uint8array";
66 
67  case ST_uint16array:
68  return out << "uint16array";
69 
70  case ST_uint32array:
71  return out << "uint32array";
72 
73  case ST_uint32uint8array:
74  return out << "uint32uint8array";
75 
76  case ST_char:
77  return out << "char";
78 
79  case ST_invalid:
80  return out << "invalid";
81  }
82 
83  return out << "invalid type: " << (int)type;
84 }
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.