Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

direct/src/dcparser/dcSubatomicType.cxx

Go to the documentation of this file.
00001 // Filename: dcSubatomicType.cxx
00002 // Created by:  drose (05Oct00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #include "dcSubatomicType.h"
00020 
00021 ostream &
00022 operator << (ostream &out, DCSubatomicType type) {
00023   switch (type) {
00024   case ST_int8:
00025     return out << "int8";
00026 
00027   case ST_int16:
00028     return out << "int16";
00029 
00030   case ST_int32:
00031     return out << "int32";
00032 
00033   case ST_int64:
00034     return out << "int64";
00035 
00036   case ST_uint8:
00037     return out << "uint8";
00038 
00039   case ST_uint16:
00040     return out << "uint16";
00041 
00042   case ST_uint32:
00043     return out << "uint32";
00044 
00045   case ST_uint64:
00046     return out << "uint64";
00047 
00048   case ST_float64:
00049     return out << "float64";
00050 
00051   case ST_string:
00052     return out << "string";
00053 
00054   case ST_blob:
00055     return out << "blob";
00056 
00057   case ST_int8array:
00058     return out << "int8array";
00059 
00060   case ST_int16array:
00061     return out << "int16array";
00062 
00063   case ST_int32array:
00064     return out << "int32array";
00065 
00066   case ST_uint8array:
00067     return out << "uint8array";
00068 
00069   case ST_uint16array:
00070     return out << "uint16array";
00071 
00072   case ST_uint32array:
00073     return out << "uint32array";
00074 
00075   case ST_uint32uint8array:
00076     return out << "uint32uint8array";
00077 
00078   case ST_invalid:
00079     return out << "invalid";
00080   }
00081 
00082   return out << "invalid type: " << (int)type;
00083 }

Generated on Fri May 2 01:37:08 2003 for Direct by doxygen1.3