CreateMDSDerivedClass
Purpose
The CMetaAIM CreateMDSDerivedClass function creates a derived class in the current model.
Description
A derived class is similar to a View in an RDBMS. It allows for creation of a logical class using properties that exist in already defined classes. A derived class is a class that contains the properties of a base class plus properties of related classes. A read of a derived class object will return all properties (base and derived) and searches can be performed on all of the properties of the derived class.
The default OwnerID is the logged in user. The class's versioning support will be set from the derived class’s base class’s versioning support.
Requirements
Names must be unique for classes and derived classes within an AIM.
Syntax
HRESULT CreateMDSDerivedClass(
CMetaClassDesc *&pClassObj,
LPCTSTR strClassName,
LPCTSTR strClassDesc,
const GUID& gClassID,
const OBJECTID_t BaseClassID,
const OBJECTID_t lOwnerID = NULLLOID,
const OBJECTID_t SecurityProfileID = NULLLOID);
Argument |
In/Out |
Description |
pClassObj |
In/Out |
Pointer to Class Desc object. If pClassObj is a pointer to NULL, the object is created by the API. The calling application is responsible for freeing the object. |
Name |
In |
Name of the class. |
Desc |
In |
Description of class. |
gClassID |
In |
Global unique identifier to assign to this class. |
BaseClassID |
In |
The class ID of the class that is the base class for this derived class. |
OwnerID |
In |
OwnerID of this object. The default OwnerID is the logged in user. |
OwnerID |
In |
OwnerID of this object. |
SecurityProfileID |
In |
Security Profile assigned to the object. |