//-----------------------------------------------------------------------------+ // Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd. // = FileName : TWRunTimeClass.h // = Version : ver2.0 // = Author : xlc // = CreateDate : 2002-09-09 // = Description: 支持运行时识别特性的基类的声明 // = Maintainers: // //-----------------------------------------------------------------------------+ #ifndef _TWRUNTIMECLASS_H_ #define _TWRUNTIMECLASS_H_ #ifndef _TWCLASSINFO_H_ #include "TWClassInfo.h" #endif //支持运行时识别特性的基类 class GEOAPI TWRunTimeClass { DECLARE_RUN_TIME_CLASS(TWRunTimeClass) public: virtual ~TWRunTimeClass(); long GetClassID()const; const char* GetClassName()const; bool IsClassOf(const char *sName)const; bool IsClassOf(const TWClassInfo *pClassInfo)const; bool IsTypeOf(const char *sName)const; bool IsTypeOf(const TWClassInfo *pClassInfo)const; bool IsSameClass(const TWRunTimeClass &wObject)const; }; #endif