Panda3D
|
00001 // Filename: register_type.cxx 00002 // Created by: drose (06Aug01) 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 "register_type.h" 00016 00017 00018 TypeHandle long_type_handle; 00019 TypeHandle int_type_handle; 00020 TypeHandle uint_type_handle; 00021 TypeHandle short_type_handle; 00022 TypeHandle ushort_type_handle; 00023 TypeHandle char_type_handle; 00024 TypeHandle uchar_type_handle; 00025 TypeHandle bool_type_handle; 00026 TypeHandle double_type_handle; 00027 TypeHandle float_type_handle; 00028 TypeHandle string_type_handle; 00029 00030 TypeHandle long_p_type_handle; 00031 TypeHandle int_p_type_handle; 00032 TypeHandle short_p_type_handle; 00033 TypeHandle char_p_type_handle; 00034 TypeHandle bool_p_type_handle; 00035 TypeHandle double_p_type_handle; 00036 TypeHandle float_p_type_handle; 00037 TypeHandle void_p_type_handle; 00038 00039 TypeHandle pvector_type_handle; 00040 TypeHandle ov_set_type_handle; 00041 TypeHandle pdeque_type_handle; 00042 TypeHandle plist_type_handle; 00043 TypeHandle pmap_type_handle; 00044 TypeHandle pset_type_handle; 00045 00046 void init_system_type_handles() { 00047 static bool done = false; 00048 if (!done) { 00049 done = true; 00050 register_type(long_type_handle, "long"); 00051 register_type(int_type_handle, "int"); 00052 register_type(uint_type_handle, "uint"); 00053 register_type(short_type_handle, "short"); 00054 register_type(ushort_type_handle, "ushort"); 00055 register_type(char_type_handle, "char"); 00056 register_type(uchar_type_handle, "uchar"); 00057 register_type(bool_type_handle, "bool"); 00058 register_type(double_type_handle, "double"); 00059 register_type(float_type_handle, "float"); 00060 register_type(string_type_handle, "string"); 00061 00062 register_type(int_p_type_handle, "int*"); 00063 register_type(short_p_type_handle, "short*"); 00064 register_type(char_p_type_handle, "char*"); 00065 register_type(bool_p_type_handle, "bool*"); 00066 register_type(double_p_type_handle, "double*"); 00067 register_type(float_p_type_handle, "float*"); 00068 register_type(void_p_type_handle, "void*"); 00069 00070 register_type(pvector_type_handle, "pvector"); 00071 register_type(ov_set_type_handle, "ov_set"); 00072 register_type(pdeque_type_handle, "pdeque"); 00073 register_type(plist_type_handle, "plist"); 00074 register_type(pmap_type_handle, "pmap"); 00075 register_type(pset_type_handle, "pset"); 00076 } 00077 } 00078 00079