IBM Support

IBM Rational Rhapsody CPP_CG::Configuration::DefaultSpecificationDirectory appears limited with CodeCentric settings

Question & Answer


Question

How can I get all the header files into a single defined directory in IBM Rational Rhapsody?

Cause

A CodeCentric model in Rhapsody has the property CPP_CG::Configuration::DefaultSpecificationDirectory set to the value ../../inc (or something similar to this). Although, the property appears to create an 'inc' directory for the header files it does not place them all in a single inc directory. They get placed based upon model hierarchy.

This behaves differently then if you create a non-CodeCentric model; where all the header files will get placed into a single 'inc' directory.

Answer

The DefaultSpecificationDirectory and DefaultImplementationDirectory property behave differently with code-centric mode. In code-centric mode they are used to specify existing include and source directories above the working directory. In this mode, the mapping between the file system and these properties is very strong, so if the files are not found in that location they are assumed missing and re-created by the code generator.

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"8.0;8.0.1;8.0.2;8.0.3;8.0.4;8.0.5;8.0.6;8.1;8.1.1;8.1.2;8.1.2.1;8.1.3;8.1.4;8.1.5","Edition":"Rational Rhapsody Architect for Software;Rational Rhapsody Architect for Systems Engineers;Rational Rhapsody Designer for Systems Engineers;Rational Rhapsody Developer","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21991451