Panda3D
 All Classes Functions Variables Enumerations
dcSubatomicType.cxx
00001 // Filename: dcSubatomicType.cxx
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 #include "dcSubatomicType.h"
00016 
00017 ostream &
00018 operator << (ostream &out, DCSubatomicType type) {
00019   switch (type) {
00020   case ST_int8:
00021     return out << "int8";
00022 
00023   case ST_int16:
00024     return out << "int16";
00025 
00026   case ST_int32:
00027     return out << "int32";
00028 
00029   case ST_int64:
00030     return out << "int64";
00031 
00032   case ST_uint8:
00033     return out << "uint8";
00034 
00035   case ST_uint16:
00036     return out << "uint16";
00037 
00038   case ST_uint32:
00039     return out << "uint32";
00040 
00041   case ST_uint64:
00042     return out << "uint64";
00043 
00044   case ST_float64:
00045     return out << "float64";
00046 
00047   case ST_string:
00048     return out << "string";
00049 
00050   case ST_blob:
00051     return out << "blob";
00052 
00053   case ST_blob32:
00054     return out << "blob32";
00055 
00056   case ST_int8array:
00057     return out << "int8array";
00058 
00059   case ST_int16array:
00060     return out << "int16array";
00061 
00062   case ST_int32array:
00063     return out << "int32array";
00064 
00065   case ST_uint8array:
00066     return out << "uint8array";
00067 
00068   case ST_uint16array:
00069     return out << "uint16array";
00070 
00071   case ST_uint32array:
00072     return out << "uint32array";
00073 
00074   case ST_uint32uint8array:
00075     return out << "uint32uint8array";
00076 
00077   case ST_char:
00078     return out << "char";
00079 
00080   case ST_invalid:
00081     return out << "invalid";
00082   }
00083 
00084   return out << "invalid type: " << (int)type;
00085 }
 All Classes Functions Variables Enumerations