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