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:
- Within the browser click on the "+" sign besides Components.
- Right click on the DefaultComponent and add a new file.
- Double click the newly created file to invoke its features.
- Name the file as desired and change the type to Specification (the default is Logical). Click OK.
- 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
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.
[{"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
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21324154