IBM Support

How can I configure Rhapsody to generate a *.h file (where some variables can be declared)?

Question & Answer


Question

How can I configure Rhapsody to generate a *.h file (where some variables can be declared)?

Answer

To generate a *.h file from within Rhapsody, follow the steps below:
  1. Within the browser click on the "+" sign besides Components.
  2. Right click on the DefaultComponent and add a new file.
  3. Double click the newly created file to invoke its features.
  4. Name the file as desired and change the type to Specification (the default is Logical). Click OK.
  5. Press Ctrl+F7 to generate the DefaultConfig (create the .h file).
Now the header file created can be edited by right clicking on it and selecting "Edit File".

If any particular class needs to have access to this .h file, right-click the class and choose Features ->Properties -> CPP_CG: Class:ImpIncludes and add the .h file there.
7.1 AnswerProduct versionPartner ContentInternal ContentCategoryReference IDAuthor

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

11302

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21324154