CAA RADE IdentityCard.h
The IdentityCard.h file is equivalent to the "Additional Include Directories" that you may be used to setting in a typical visual studio project. It is a list of directories where CATIA entities' code resides which defines their attributes and behavior. When you use a class in a CAA project you include the header file, but the compiler needs to know where to find that header file (even though Visual Studio can find the file, the mkmk compiler still needs to know where it is).
The IdentityCard.h file is organized as follows:
CAA Wizard Edition Zone
// DO NOT EDIT :: THE CAA2 WIZARDS WILL ADD CODE HERE AddPrereqComponent("System",Protected); AddPrereqComponent("CATAnalysisInterfaces",Protected); AddPrereqComponent("DialogEngine",Protected); AddPrereqComponent("Mathematics",Protected); AddPrereqComponent("Dialog",Protected); // END WIZARD EDITION ZONE
- This code is automatically generated by the CAA Wizards and should not be adjusted or changed.
User Input Area
AddPrereqComponent("ApplicationFrame",Public); AddPrereqComponent("GSMInterfaces",Public); AddPrereqComponent("SketcherInterfaces",Public); AddPrereqComponent("MecModInterfaces",Public); AddPrereqComponent("ObjectSpecsModeler",Public); AddPrereqComponent("GeometricObjects",Public); AddPrereqComponent("ObjectModelerBase",Public); ... ... ...
- Each time you use a new class object in your code, you must make sure that the compiler knows where the header file that defines the class resides. You must add the folder in which the header file resides to this list. This can be accomplished in the following manner:
- 1. Open the header file in Visual Studio associated to a
certain object by highlighting the class object name and
2. Open a Windows Explorer that shows the location of the current open file in Visual Studio by pressing ctrl + Shift + x.
3. In the displayed folder path copy the folder name that is one level up from where you are currently looking
4. Add this word to the as the first input of the function AddPrereqComponent to yield the following the the IdentityCard.h file:
- Note: The difference between Public and Protected is not well understood at this point. The Wizards usually add Protected automatically, however, you should use Public when you add link directories.
- Note: Remember that just because you have included in the IdentityCard.h file doesn't mean that the individual dll's can see the code that they need. You must still include a different keyword in the Imakefile to make the code available to each dll. see CAA RADE Imakefile