Files in the structural model

IBM® Rational® Rhapsody® Developer for C enables you to create model elements that represent files. A file is a graphical representation of a specification (.h) or implementation (.c) source file.

The file model element enables you to use functional modeling and take advantage of the capabilities of Rational Rhapsody (modeling, execution, code generation, and reverse engineering), without radically changing the existing files.

Note: Files are not the same as the file functionality in components that existed in previous versions of the product. To differentiate between the two, the new file is called File in Package and the old file element is called File in Component. A File in Component includes only references to primary model elements (package, class, object, and block) and shows their mapping to physical files during code generation.

A file element can include variables, functions, dependencies, types, parts, aggregate classes, and other model elements. However, nested files are not allowed.

Rational Rhapsody supports the following modeling behavior for files:


Feedback