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 |
设置属性处理回调方法 | |
![]() | |
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. | |
Definition at line 110 of file sobject-i.h.
HRESULT IObject::AfterAttribute | ( | LPCWSTR | pszAttr, |
LPCWSTR | pszValue, | ||
BOOL | bLoading, | ||
HRESULT | hr ) |
属性处理后调用的方法
OnAttribute
LPCWSTR | pszAttr– 属性名 |
LPCWSTR | pszValue – 属性值 |
BOOL | bLoading – 对象创建时由系统调用标志 |
HRESULT | hr – 属性处理结果 Describe 不做处理,直接返回 |
BOOL IObject::GetAttribute | ( | LPCWSTR | strAttr, |
IStringW * | pValue ) |
通过属性名查询属性值
GetAttribute
LPCWSTR | strAttr – 属性名 |
IStringW | * pValue – 属性值 |
int IObject::GetID | ( | ) |
获取对象ID
GetID
LPCWSTR IObject::GetName | ( | ) |
获取对象Name
GetName
LPCWSTR IObject::GetObjectClass | ( | ) |
获得类型名
GetObjectClass
int IObject::GetObjectType | ( | ) |
获得对象类型
GetObjectType
BOOL IObject::InitFromXml | ( | IXmlNode * | xmlNode | ) |
BOOL IObject::IsClass | ( | LPCWSTR | lpszName | ) |
判断this是不是属于指定的类型
IsClass
LPCWSTR | lpszName – 测试类型名 |
void IObject::OnInitFinished | ( | IXmlNode * | xmlNode | ) |
void IObject::SetAttrHandler | ( | FunAttrHandler | attrHandler | ) |
设置属性处理回调方法
SetAttrHandler
FunAttrHandler | attrHandler– 属性处理回调方法 |
HRESULT IObject::SetAttribute | ( | LPCWSTR | pszAttr, |
LPCWSTR | pszValue, | ||
BOOL bLoading | DEF_VALFALSE ) |
设置一个对象属性
SetAttribute
LPCWSTR | pszAttr – 属性名 |
LPCWSTR | pszValue – 属性值 |
BOOL | bLoading – 对象创建时由系统调用标志 |
HRESULT IObject::SetAttributeA | ( | LPCSTR | pszAttr, |
LPCSTR | pszValue, | ||
BOOL bLoading | DEF_VALFALSE ) |
设置一个对象属性
SetAttribute
LPCSTR | pszAttr – 属性名 |
LPCSTR | pszValue – 属性值 |
BOOL | bLoading – 对象创建时由系统调用标志 |
void IObject::SetID | ( | int | nID | ) |
设置对象ID
nID | int–对象ID |
void IObject::SetName | ( | LPCWSTR | pszName | ) |
设置对象Name
pszName | LPCWSTR – 对象Name |