⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fwbaseclass.h

📁 一个用HLA编写的聊天程序
💻 H
字号:
/**********************************************************************************

						欢迎使用FFB-MOT对象模板V1.1
						设计者:尹娟,龚建兴
						Email:fj_gjx@yahoo.com
						Phone:0731-4574996
						日期 :2003.8.25

**********************************************************************************/
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#ifndef FWBASECLASS_H_
#define FWBASECLASS_H_

#include "FWPackData.h"
#include "DataTypeDef.h"

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CFWBaseClass 
{
public:
	CFWBaseClass();

//Attribute
public:
	DECLARE_PACKINGANDUNPACKING_CLASS_OFOBJECT
	//{{FW_PUBLIC_ATTRIBUTE_DECLARE_BEGIN <<----- Don't delete it!>>
	std::string			m_InstName;
	RTI::ObjectHandle	m_InstanceId;
	RTI::Boolean		m_IsExisting;
	RTI::Boolean		m_ProxyFlag;
	RTI::Boolean		m_IsTransferPrivilegeToDelete;
	RTI::Boolean		m_IsOwnedPrivilegeToDelete;
	//}}FW_PUBLIC_ATTRIBUTE_DECLARE_END <<----- Don't delete it!>>

	//{{FW_PUBLIC_STATIC_ATTRIBUTE_DECLARE_BEGIN <<----- Don't delete it!>>
	static std::string		m_ObjClassName;
	static RTI::Boolean	ms_doRegistry;
	static char*		ms_PrivilegeToDeleteStr;
	static RTI::AttributeHandle	ms_PrivilegeToDeleteId;
	static RTI::RTIambassador	*m_RtiAmb;
	//}}FW_PUBLIC_STATIC_ATTRIBUTE_DECLARE_END <<----- Don't delete it!>>

//Method
public:
	//{{FW_PUBLIC_METHOD_DECLARE_BEGIN <<----- Don't delete it!>>
	void SetInstID(RTI::ObjectHandle	idValue);
	RTI::ObjectHandle GetInstID();
	static void SetRegistration(RTI::Boolean regFlag);
	static void Init(const RTI::ObjectClassHandle &theObject = 0);
	static RTI::AttributeHandle FindAttributeHandle(CString theAttrName);
	static void SetRtiAmb(RTI::RTIambassador &theRtiAmb);
	//}}FW_PUBLIC_METHOD_DECLARE_END <<----- Don't delete it!>>

	//{{FW_PUBLIC_VIRTUAL_METHOD_DECLARE_BEGIN <<----- Don't delete it!>>
	virtual void CreateNVPSet(RTI::AttributeHandleValuePairSet *pAttributes, CStringArray &theAttrNames);
	virtual RTI::Boolean IsUpdate();
	virtual void SetUpdateControl(RTI::Boolean updateFlag,const RTI::AttributeHandleSet &theAttrHandles);
	virtual void SetTransferOwnerFlag(RTI::Boolean transferFlag, const RTI::AttributeHandleSet &theAttrHandles);
	virtual void SetOwnedAttrsFlag(RTI::Boolean ownedFlag, const RTI::AttributeHandleSet &theAttrHandles);
	virtual void ReflectAttributeValues(const RTI::AttributeHandleValuePairSet &theAttributes);
	virtual RTI::Boolean GetReflectedStatusOfAttr(CString theAttrName);
	virtual void SetReflectedStatusOfAttrs(CStringArray &theAttrNames, RTI::Boolean theStatus);
	//}}FW_PUBLIC_VIRTUAL_METHOD_DECLARE_END <<----- Don't delete it!>>
};

#endif //PUBBASECLASS_H_
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -