Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > IDL Code > Mapping information > Mapping information for UML items > Basic Type mapping for IDL (IDL code)
  
Basic Type mapping for IDL (IDL code)
The mapping of basic types is defined through the [Datatype Mappings] section of the IDL_Sync.ini file, which resides in the 'PTC Integrity Modeler\Modeler\System\IDLGen' folder. If you create a basic type in the Model, you may have to map it to an IDL type in the IDL_Sync.ini file:
If the Basic Type name does not contain spaces and its case is as you want it generated, you do not have to map the Basic Type to an IDL type.
If the Basic Type name needs to be generated as a different type, you must map the Basic Type to an IDL type. For example, Date=long.
If the Basic Type name contains spaces, you must map the Basic Type to an IDL type. You can map a Basic Type name to itself, for example, my type=my type. Failure to do so results in spaces being generated as underscores. If you then reverse engineer the code, the data type will be changed to an uninterpreted data type in the Model that contains underscores instead of spaces.
If the Basic Type name has the wrong case, you must map the Basic Type to an IDL type with the correct case specified. For example, Short=short.
You can apply the «CORBAPrimative» stereotype to a Basic Type, however this stereotype does not affect how the Basic Type is generated.
IDL Profile provides the following Basic types in the IDL Profile::Basic Types package:
any
boolean
char
double
fixed
float
long double
long long
long
octet
short
string
unsigned long long
unsigned long
unsigned short
wchar
wstring
IDL_Sync.ini is installed with the following data type mappings defined (the Basic Type name to the left of the equals sign is not case sensitive, the IDL name to the right of the equals sign is case sensitive):
any=any
boolean=boolean
char=char
double=double
fixed=fixed
float=float
long double=long double
long long=long long
long=long
octet=octet
short=short
string=string
unsigned long long=unsigned long long
unsigned long=unsigned long
unsigned short=unsigned short
wchar=wchar
wstring=wstring
If a data type is not defined, ACS uses the default specified in the [Datatype Default] section of the IDL_Sync.ini file.