Files
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

42 lines
1.0 KiB
C++

//-----------------------------------------------------------------------------+
// 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