Use the Features window to define a component.
About this task
The General tab
includes the following fields:
- Name specifies the name
of the component.
- L specifies the label for
the element, if any.
- Stereotype specifies the
stereotype of the component, if any. They are enclosed in guillemets,
for example «s1» and enable you to tag classes for
documentation purposes.
Note: The COM stereotypes are
constructive; that is, they affect code generation.
- Directory specifies the
root directory for all configurations of the component. This directory
can be the project directory or another directory.
- Libraries specifies any
additional libraries to be added to the link. This field is relevant
for executable files only. Libraries can be off-the-shelf libraries,
legacy code, or Rational® Rhapsody®-generated
libraries.
- Additional Sources specifies
external source files to be compiled with the generated source files. IBM® Rational Rhapsody adds
the files to the project makefile.
- Standard Headers specifies
header files to be added to include statements in
every file generated for the project. Specify either a full path or,
if only a filename, add a path in the Include Path field.
- Include Path specifies the
directory in which the include files are located.
This field supports environment variables, such as $ROOT\Project\ExternalCode.
- Type specifies the build
type. Select Library, Executable, or Other. Rational Rhapsody does
not generate code for a component that has build type "other," nor
can such a component be set as the active component. "Other" could
be used to designate script files or other non-code files.