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 > Generating C++ code > Setting up data type mappings - optional (C++ code)
  
Setting up data type mappings - optional (C++ code)
If you create a basic type in the Model, you may have to map it to a C++ type in the Cppgen.ini file. For more information, see Basic type mapping for C++ (C++ code).
To specify data type mappings
1. Using a text editor such as Notepad, open the Cppgen.ini file, which resides in the PTC Integrity Modeler\Modeler\System\CppGen folder.
2. In the Datatype Mappings section, Insert or change your basic types using the syntax:
<Modeler Type>=<C++ Type>
Where <Modeler Type> is not case sensitive and <C++ Type> is case sensitive.
3. Save and close the Cppgen.ini file.
4. If ACS is running, stop and restart ACS.
To specify a default data type for attributes, parameters and type definitions:
1. Using a text editor such as Notepad, open the Cppgen.ini file, which resides in the PTC Integrity Modeler\Modeler\System\CppGen folder.
2. In the [Datatype Default] section, set the default value as required.
When an Attribute, Parameter or Type Definition does not have a data type specified, ACS will use the default value you specified.
To specify a default data type for operations:
1. Using a text editor such as Notepad, open the Cppgen.ini file, which resides in the PTC Integrity Modeler\Modeler\System\CppGen folder.
2. In the [Datatype Default] section, set the operationdefault value as required.
When an Operation does not have a data type specified, ACS will use the default value you specified.