Extensions on packages

Stereotypes on packages

Name Label Behaviour
Cxx.CLI.Package CLI Package Indicates this element is a CLI package.

All elements created in this package will be CLI elements by default rather than UML elements.
CxxPackage C++ Package Indicates this element is a C++ package.

All elements created in this package will be C++ elements by default rather than UML elements.

Tagged values on <<C++ Package>> and <<CLI Package>> packages

Name Label Parameters Behaviour
Cxx.Package.DirectoryName Directory name Include file Specifies a name for the directory corresponding to this package.
Cxx.Package.GenInterface Generate interface N/A Automatically generates forward declaration of the public element of the package in the package header file.
Cxx.Package.NoDirectory No directory N/A Specifies that the package must not be generated as a directory.
Cxx.Package.NoNamespace No namespace N/A Specifies that the package must not be generated as a C++ namespace.

Notes on <<C++ Package>> and <<CLI Package>> packages

Name Label Behaviour
Cxx.Body.NamespaceMember Header namespace member Contains code to insert into the namespace implementation in the package body file.
Cxx.Header.NamespaceMember Body namespace member Contains code to insert into the namespace declaration in the package header file.