Use the Map to Package group on
the Mapping tab of the Reverse Engineering
Advanced Options window to specify how to organize imported
elements to packages.
About this task
This group has the following controls:
- All to radio button lets
you map all imported elements to the package you specify in the text
field next to this radio button. For example, when you select the All
to radio button, the reverse engineering tool automatically populates
the default name of ReverseEngineering in the text
field. This means that all imported elements are mapped to a package
called ReverseEngineering. You can change this value, for example,
to MyREPackage.
Note: It is possible
to set a nested package in this field. The syntax is
Package1::Package2.
Non-existent packages will be created during reverse engineering.
- Directory is a Package radio
button lets you reverse engineer the files while emulating the existing
directory structure so that packages are created for each imported
directory. All the files in the directory are imported to the corresponding
package. This is the default value. You can set the root directory
or have the Reverse Engineering tool calculate it for you. See Specifying directory structures for more
details and an example.
Note: This option sets the
CG::Package::GenerateDirectory property
to
Checked for the active configuration. For elements,
the original hierarchy of directories is restored on code generation
for the imported elements, and
#include statements
are generated for references to them.