BIMHome v1.0.0
BIMHome接口文档说明
Public 成员函数 | Protected 属性 | 所有成员列表
DocumentObjectObserverDelegate类 参考abstract

文档对象观察者代理基类 更多...

#include <DocumentObjectObserverDelegate.h>

Public 成员函数

void addDynamicProperty (const char *type, const char *name, const boost::any &value)
 添加动态属性
 
bool anyToBool (const boost::any &value)
 将 any 类型转换为 bool
 
double anyToDouble (const boost::any &value)
 将 any 类型转换为 double
 
std::string anyToString (const boost::any &value)
 将 any 类型转换为 string
 
virtual std::string delegateName ()=0
 获取代理名称
 
virtual void documentObjectCreating ()
 文档对象开始创建时回调
 
virtual void documentObjectExecute ()
 文档对象执行时调用
 
virtual void documentObjectIsBeingDestructed ()
 文档对象即将析构时回调
 
 DocumentObjectObserverDelegate ()
 
virtual void documentObjectOnChange (const std::string &sPropName, const boost::any &sPropValue)
 文档对象属性改变时调用
 
App::IDocumentObjectgetDocumentObject ()
 获取文档对象
 
boost::any getDynamicPoperty (const char *name) const
 获取动态属性
 
virtual std::string getViewProviderDelegateName ()
 获取视图提供者代理名称
 
virtual const char * getViewProviderName () const
 获取视图提供者名称
 
bool hasDynamicPropertyByGivingName (const char *name) const
 检查是否存在指定名称的动态属性
 
void setDocumentObject (App::IDocumentObject *pDocObj)
 设置文档对象
 
virtual ~DocumentObjectObserverDelegate ()
 

Protected 属性

App::IDocumentObjectm_pDocObj
 当前关联的文档对象指针
 

详细描述

文档对象观察者代理基类

用于在文档对象生命周期各阶段插入自定义行为,例如在对象创建、销毁、属性改变时执行特定逻辑。


该类的文档由以下文件生成: