CAA: IdentityCard.h

作者: 锦囊喵 | 来源:发表于2020-10-14 11:32 被阅读0次

http://maruf.ca/rade/web/CAA_RADE_IdentityCard.htm

IdentityCard.h 文件等同于“附加包含目录”,你可以用来设置一个Visual Studio项目。它是CATIA头文件所在的目录的列表,这些目录定义了头文件。
当您在CAA项目中使用类时,需要在IdentityCard.h中写入定义该类的目录,以使编译器需要知道在哪里可以找到该头文件(即使Visual Studio可以找到该文件,mkmk编译器仍然需要知道它在哪里)。

IdentityCard.h文件的组织如下:

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
  • 此代码由CAA向导自动生成,不应进行调整或更改。

User Input Area

AddPrereqComponent("ApplicationFrame",Public);
AddPrereqComponent("GSMInterfaces",Public);
AddPrereqComponent("SketcherInterfaces",Public);
AddPrereqComponent("MecModInterfaces",Public);
AddPrereqComponent("ObjectSpecsModeler",Public);
AddPrereqComponent("GeometricObjects",Public);
AddPrereqComponent("ObjectModelerBase",Public);
...
...
...
  • 将头文件所在的目录添加到此列表中

在代码中使用新的类对象时,都必须确保编译器知道定义该类的头文件所在的位置。操作方式如下:

1.通过突出显示类对象名称并按ctrl + T,在Visual Studio中打开与某个对象关联的头文件。

2.通过按ctrl + Shift + x,打开一个Windows资源管理器,该资源管理器在Visual Studio中显示当前打开文件的位置。

3.在显示的文件夹路径中,复制当前查找位置上一级的文件夹名称

4.将该文件名添加为函数AddPrereqComponent的第一个参数,添加到IdentityCard.h文件:

AddPrereqComponent(“ Mathematics”,Public); 
  • 注意:到目前为止,“Public”和“* Protected”之间的区别尚不清楚。向导通常会自动添加“Protected”,建议在添加链接目录时应使用“Public”*。
  • 注意:请记住,修改IdentityCard.h文件后,还修改Imakefile文件。请参阅 CAA:Imakefile

相关文章

网友评论

    本文标题:CAA: IdentityCard.h

    本文链接:https://www.haomeiwen.com/subject/wwwipktx.html