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 parameters for generating C++ code (C++ code)
  
Setting up parameters for generating C++ code (C++ code)
In addition to the standard Parameter properties in Modeler, you can apply the «C++ Parameter» stereotype to a Parameter, 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 Parameter as required. Tell me more...
3. Apply the «C++ Parameter» stereotype to the Parameter.
For information about applying Stereotypes to an item, see Applying a Stereotype to a model item.
4. Open the Parameter's Property Pages, and then click the C++ Parameter 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 specify array text for the Parameter, specify the text (including brackets) as the tagged value of the C++ Array Spec tag definition.
6. If you want to specify a CV qualifier for the Parameter, set the tagged value of the C++ CV Qualifier tag definition as required.
7. If you want to specify indirection text for the Parameter, such as * or *const, specify the text as the tagged value of the C++ Indirection tag definition.
8. If the Parameter's type is a template class, specify the text you want between the angle brackets as the tagged value of the C++ Actual Template Parameters tag definition.
9. If you want to specify that the Parameter is of type 'pointer to function', specify the function pointer return as the tagged value of the C++ Function Pointer Return tag definition and specify any function pointer parameters as the tagged value of the C++ Function Pointer Parameters tag definition. The tag definitions are generated as follows for the Parameter:
<C++ Function Pointer Return>(<C++ Indirection><derived C++ Name>)(<C++ Function Pointer Parameters>);
10. If you want to specify a storage class keyword for the Parameter, set the tagged value of the C++ Storage Class tag definition to auto, register, extern or mutable.
11. If you want the Parameter to be generated with no name, set the tagged value of the C++ Anonymous Item tag definition to TRUE.