Book a Demo

Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Prev Next

C++ Transformation

The C++ transformation converts Platform-Independent Model (PIM) element types to C++ specific Class element types and creates encapsulation (producing the getters and setters) according to the options you have set for creating properties from C++ attributes (on the 'C++ Specifications' page of the 'Preferences' dialog). Note that the public attributes in the PIM are converted to private attributes in the PSM. All operations on an interface are transformed into pure virtual methods on an equivalent class.

Example

The PIM elements

UML Class diagram Platform Independent Model (PIM) in Sparx Systems Enterprise Architect.

After transformation, become the PSM elements

UML Class diagram Platform Specific Model (PSM) in Sparx Systems Enterprise Architect.

Learn more