soui 5.0.0.1
 
Loading...
Searching...
No Matches
IObject Struct Reference
Inheritance diagram for IObject:
IObjRef SObjectImpl< IObject > IAnimation ICaret IEvtArgs IGradient IInterpolator ILayout ILayoutParam INcPainter ISkinObj IValueAnimator IWindow

Public Member Functions

long AddRef () PURE
 添加引用
 
long Release () PURE
 释放引用
 
void OnFinalRelease () PURE
 释放对象
 
BOOL IsClass (LPCWSTR lpszName) SCONST PURE
 判断this是不是属于指定的类型
 
LPCWSTR GetObjectClass () SCONST PURE
 获得类型名
 
int GetObjectType () SCONST PURE
 获得对象类型
 
int GetID () SCONST PURE
 获取对象ID
 
void SetID (int nID) PURE
 设置对象ID
 
LPCWSTR GetName () SCONST PURE
 获取对象Name
 
LPCSTR GetNameA () SCONST PURE
 
void SetName (LPCWSTR pszName) PURE
 设置对象Name
 
BOOL InitFromXml (IXmlNode *xmlNode) PURE
 从XML结节初始化SObject对象
 
void OnInitFinished (IXmlNode *xmlNode) PURE
 属性初始化完成处理接口
 
HRESULT ISetAttribute (const IStringW *strAttribName, const IStringW *strValue, BOOL bLoading) PURE
 设置一个对象属性
 
HRESULT SetAttributeA (LPCSTR pszAttr, LPCSTR pszValue, BOOL bLoading DEF_VAL(FALSE)) PURE
 设置一个对象属性
 
HRESULT SetAttribute (LPCWSTR pszAttr, LPCWSTR pszValue, BOOL bLoading DEF_VAL(FALSE)) PURE
 设置一个对象属性
 
BOOL GetAttribute (LPCWSTR strAttr, IStringW *pValue) SCONST PURE
 通过属性名查询属性值
 
HRESULT AfterAttribute (LPCWSTR pszAttr, LPCWSTR pszValue, BOOL bLoading, HRESULT hr) PURE
 属性处理后调用的方法
 
void SetAttrHandler (FunAttrHandler attrHandler) PURE
 设置属性处理回调方法
 
- Public Member Functions inherited from IObjRef
long AddRef () PURE
 Increases the reference count.
 
long Release () PURE
 Decreases the reference count.
 
void OnFinalRelease () PURE
 Called when the reference count reaches zero and the object is about to be released.
 

Detailed Description

Definition at line 110 of file sobject-i.h.

Member Function Documentation

◆ AfterAttribute()

HRESULT IObject::AfterAttribute ( LPCWSTR pszAttr,
LPCWSTR pszValue,
BOOL bLoading,
HRESULT hr )

属性处理后调用的方法

OnAttribute

Parameters
LPCWSTRpszAttr– 属性名
LPCWSTRpszValue – 属性值
BOOLbLoading – 对象创建时由系统调用标志
HRESULThr – 属性处理结果 Describe 不做处理,直接返回

◆ GetAttribute()

BOOL IObject::GetAttribute ( LPCWSTR strAttr,
IStringW * pValue )

通过属性名查询属性值

GetAttribute

Parameters
LPCWSTRstrAttr – 属性名
IStringW* pValue – 属性值
Returns
BOOL, TRUE:获取成功,FALSE:获取失败,属性不存在 Describe 默认返回空

◆ GetID()

int IObject::GetID ( )

获取对象ID

GetID

Returns
int – 对象ID Describe

◆ GetName()

LPCWSTR IObject::GetName ( )

获取对象Name

GetName

Returns
LPCWSTR – 对象Name Describe

◆ GetObjectClass()

LPCWSTR IObject::GetObjectClass ( )

获得类型名

GetObjectClass

Returns
LPCWSTR – 类型名 Describe 这是一个虚函数,注意与GetClassName的区别。

◆ GetObjectType()

int IObject::GetObjectType ( )

获得对象类型

GetObjectType

Returns
int – 对象类型 Describe 这是一个虚函数,注意与GetClassType的区别。

◆ InitFromXml()

BOOL IObject::InitFromXml ( IXmlNode * xmlNode)

从XML结节初始化SObject对象

InitFromXml

Parameters
SXmlNode– XML结节
Returns
BOOL – 成功返回TRUE Describe

◆ IsClass()

BOOL IObject::IsClass ( LPCWSTR lpszName)

判断this是不是属于指定的类型

IsClass

Parameters
LPCWSTRlpszName – 测试类型名
Returns
BOOL – true是测试类型 Describe

◆ ISetAttribute()

HRESULT IObject::ISetAttribute ( const IStringW * strAttribName,
const IStringW * strValue,
BOOL bLoading )

设置一个对象属性

ISetAttribute

Parameters
constIStringW *strAttribName – 属性名
constIStringW *strValue – 属性值
BOOLbLoading – 对象创建时由系统调用标志
Returns
HRESULT – 处理处理结果 Describe

◆ OnInitFinished()

void IObject::OnInitFinished ( IXmlNode * xmlNode)

属性初始化完成处理接口

OnInitFinished

Parameters
SXmlNodexmlNode – 属性节点
Returns
void Describe

◆ SetAttrHandler()

void IObject::SetAttrHandler ( FunAttrHandler attrHandler)

设置属性处理回调方法

SetAttrHandler

Parameters
FunAttrHandlerattrHandler– 属性处理回调方法
Returns
void Describe

◆ SetAttribute()

HRESULT IObject::SetAttribute ( LPCWSTR pszAttr,
LPCWSTR pszValue,
BOOL bLoading DEF_VALFALSE )

设置一个对象属性

SetAttribute

Parameters
LPCWSTRpszAttr – 属性名
LPCWSTRpszValue – 属性值
BOOLbLoading – 对象创建时由系统调用标志
Returns
HRESULT – 处理处理结果 Describe

◆ SetAttributeA()

HRESULT IObject::SetAttributeA ( LPCSTR pszAttr,
LPCSTR pszValue,
BOOL bLoading DEF_VALFALSE )

设置一个对象属性

SetAttribute

Parameters
LPCSTRpszAttr – 属性名
LPCSTRpszValue – 属性值
BOOLbLoading – 对象创建时由系统调用标志
Returns
HRESULT – 处理处理结果 Describe

◆ SetID()

void IObject::SetID ( int nID)

设置对象ID

Parameters
nIDint–对象ID
Returns

◆ SetName()

void IObject::SetName ( LPCWSTR pszName)

设置对象Name

Parameters
pszNameLPCWSTR – 对象Name
Returns

The documentation for this struct was generated from the following file: