Define Dependencies Between Type Libraries
The Repository Type Information Model (RTIM) allows model developers to define dependencies between type libraries. You can define dependencies if you want to share information models, or leverage an existing information model within a new context.
To define a dependency
- Use the DependsOn collection on the IReposTypeLib2 interface to define a dependency between two type libraries. For example, in order to define a dependency between file allocation table (FAT) and FileSys type libraries:
Use the following code to define a dependency in Automation:
FAT.DependsOn("IReposTypeLib2").Add FileSys
Use the following code to define a dependency in COM:
pFATCol -> Add(pFileSys, RelShipName, &pRelShipName);
pFATCol
A pointer to the FAT type library DependsOn collection on the IReposTypeLib2 Interface.
pFileSys
A pointer to the FileSys type library.
RelShipName
The name of the relationship between the FAT and the FileSys type libraries.
pRelShipName
A pointer to the relationship between the FAT and the FileSys type libraries.
See Also
Add Classes to the Repository Type Library