00001 // Filename: dcSubatomicType.h 00002 // Created by: drose (05Oct00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef DCSUBATOMICTYPE_H 00016 #define DCSUBATOMICTYPE_H 00017 00018 #include "dcbase.h" 00019 00020 BEGIN_PUBLISH 00021 //////////////////////////////////////////////////////////////////// 00022 // Enum : DCSubatomicType 00023 // Description : This defines the numeric type of each element of a 00024 // DCAtomicField; that is, the particular values that 00025 // will get added to the message when the atomic field 00026 // method is called. 00027 //////////////////////////////////////////////////////////////////// 00028 enum DCSubatomicType { 00029 ST_int8, 00030 ST_int16, 00031 ST_int32, 00032 ST_int64, 00033 00034 ST_uint8, 00035 ST_uint16, 00036 ST_uint32, 00037 ST_uint64, 00038 00039 ST_float64, 00040 00041 ST_string, // a human-printable string 00042 ST_blob, // any variable length message, stored as a string 00043 ST_blob32, // a blob with a 32-bit length, up to 4.2 GB long 00044 ST_int16array, 00045 ST_int32array, 00046 ST_uint16array, 00047 ST_uint32array, 00048 00049 ST_int8array, 00050 ST_uint8array, 00051 00052 // A special-purpose array: a list of alternating uint32 and uint8 00053 // values. In Python, this becomes a list of 2-tuples. 00054 ST_uint32uint8array, 00055 00056 // Equivalent to uint8, except that it suggests a pack_type of 00057 // PT_string. 00058 ST_char, 00059 00060 // New additions should be added at the end to prevent the file hash 00061 // code from changing. 00062 00063 ST_invalid 00064 }; 00065 END_PUBLISH 00066 00067 ostream &operator << (ostream &out, DCSubatomicType type); 00068 00069 #endif 00070 00071