Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > C++ code > Generating C++ code > Generating C++ code > Modeling C++ code in Modeler > Setting up packages for generating C++ code (C++ code)
  
Setting up packages for generating C++ code (C++ code)
In addition to the standard Package properties in Modeler, you can apply the «C++ Namespace» and «C++ Package» stereotypes to a Package, and then use its Tag Definitions to define C++ specific information.
1. If you have not done so already, add the C++ Profile package to your Model. How?
2. Set the standard properties of the Package as required. Tell me more...
3. Apply the «C++ Package» stereotype to the Package.
For information about applying Stereotypes to an item, see Applying a Stereotype to a model item.
4. Open the Package's Property Pages, and then click the C++ Package tab.
For information about setting the tagged value of a Tag Definition, see Setting a tagged value for an applied Tag Definition.
5. If you want to add #include statements and forward declarations to the generated header file, specify the text as the tagged value of the C++ Header Include tag definition.
6. If you want to add #include statements and forward declarations to the generated implementation file, specify the text as the tagged value of the C++ Implementation Include tag definition.
7. If you want to generate the Package as a namespace:
a. Select the Namespace check box on the Package's Property Pages.
b. Apply the «C++ namespace» stereotype to the Package.
For information about applying Stereotypes to an item, see Applying a Stereotype to a model item.
c. If you want to specify using declarations and directives for the namespace, specify the text as the tagged values of the C++ Using Decls and C++ Using Directives tag definitions. Note that if the C++ Using Decls and C++ Using Directives tag definitions are both blank, ACS will generate a 'using namespace std' statement when necessary.