CCLSOBJ。CPP
在示例提供程序组件中,架构类对象的函数包含在 cclsobj.cpp 中。
CSampleDSClass 类在此文件中定义。 CSampleDSClass 使用下表中列出的方法和属性定义。
方法 | 说明 |
---|---|
CSampleDSClass | 标准构造函数。 |
~CSampleDSClass | 标准析构函数。 |
CreateClass | 创建 ADs 架构类对象。 通过调用 SampleDSGetClassDefinition 查找属性定义。 |
CreateClass | 创建架构类对象,给定属性定义、设置已知属性,如 IADsClass::MandatoryAttributes 中列出的属性。 |
AllocateClassObject | 创建架构类对象并加载其类型数据。 |
QueryInterface | 返回请求的接口指针(如果可用)。 |
标准 IADs 方法。 | 此文件中包含的标准 IAD 接口 方法。 |
标准 IADsClass 方法。 | 此文件中包含的标准 IADsClass 接口方法。 |
CreatePropertyList | 通过调用 CreatePropertyEntry 创建与此架构类关联的属性列表。 |
CreatePropertyEntry | 在此架构类中创建一个属性对象。 |
FreePropertyEntry | 释放 CreatePropertyEntry 中创建的条目。 |
MakeVariantFromPropList | 从 CreatePropertyList 创建的属性列表中的 VARIANTS 数组。 可用于 IADsClass::MandatoryAttributes 等实现。 |