All Frameworks Class Hierarchy This Framework Previous Next Indexes
KnowledgeInterfaces Interface CATIAddTypeLibrary
System.IUnknown
|
+---System.IDispatch
|
+---System.CATBaseUnknown
|
+---CATIAddTypeLibrary
Usage: you can freely reimplement this interface.
interface CATIAddTypeLibrary
Interface to implement to add types in the dictionary.
Usage:
If you want to expose your objects to search, knowledge...
Implement this interface on one class that we call XX for example (that
will also implement CATICreateInstance).
In the Add method create all the types.
Create an Object Modeler dictionary (.dic file) explaining that XX implements
CATICreateInstance and CATIAddTypeLibrary in your shared library
Those methods will be called by our product at its initialisation
The algorithm to find all types is the following :
We scan the Object Modeler Dictionnaries to find all objects implementing CATIAddTypeLibrary and CATICreateInstance :
for each object, we create it with CATICreateInstance, then get the
CATIAddTypeLibrary interface on it and call the Add Method.
In the Add method, you can use the CreateFunction method.
Note that the library where you implement this should be as
small as possible in order to avoid long load times and to
keep memory usage as low as possible.
Method Index
- o
Add()
- Add your own types in this method.
Methods
o Add
public virtual void Add( | )= 0 |
-
Add your own types in this method.
This object is included in the file: CATIAddTypeLibrary.h
If needed, your Imakefile.mk should include the module: KnowledgeItf