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 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.
Add Classes to the Repository Type Library