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 Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21991451