Files
envi-code/SourceCode/Code2026/tg_shs/inc/subgeo/TWRunTimeClass.h
T

42 lines
1.0 KiB
C++
Raw Normal View History

2026-10-04 00:04:20 +08:00
//-----------------------------------------------------------------------------+
2026-09-28 15:28:50 +08:00
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
// = FileName : TWRunTimeClass.h
// = Version : ver2.0
// = Author : xlc
// = CreateDate : 2002-09-09
2026-10-04 00:04:20 +08:00
// = Description: 支持运行时识别特性的基类的声明
2026-09-28 15:28:50 +08:00
// = Maintainers:
//
//-----------------------------------------------------------------------------+
#ifndef _TWRUNTIMECLASS_H_
#define _TWRUNTIMECLASS_H_
#ifndef _TWCLASSINFO_H_
#include "TWClassInfo.h"
#endif
2026-10-04 00:04:20 +08:00
//支持运行时识别特性的基类
2026-09-28 15:28:50 +08:00
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