include/typeinfo.hpp

Go to the documentation of this file.
00001 
00002 #ifndef _TYPEINFO_HPP_
00003 #define _TYPEINFO_HPP_
00004 
00005 #include <string>
00006 
00007 namespace ps
00008 {
00009         enum TypeClass
00010         {
00011                 ETC_Integer,
00012                 ETC_Float,
00013                 ETC_UserPtr,
00014                 ETC_Struct,
00015                 ETC_None
00016         };
00024         class TypeInfo
00025         {
00026                 public:
00027                         TypeInfo()
00028                         {
00029                                 type = ETC_None;
00030                         }
00031                         TypeInfo(TypeClass type, std::string name = "")
00032                         {
00033                                 this->type = type;
00034                                 this->name = name;
00035                         }
00036                         
00037                         TypeClass type;
00038                         std::string name;
00039         };
00040         
00045         int getVariableType(TypeClass typeclass);
00049         TypeClass getTypeClass(int vartype);
00050 }
00051 
00052 #endif
00053 

Generated on Sun Feb 3 21:38:49 2008 for libplusscript++ by  doxygen 1.5.3