Managed C++ Conventions

Return to Introduction  Previous page  Next page

The following conventions are used for managed extensions to C++ prior to C++/CLI.  In order to set Enterprise Architect to generate managed C++ you must modify the C++ version in the C++ Options.

Stereotypes

Stereotype

Applies to

Corresponds To

reference

Class

The __gc keyword.

value

Class

The __value keyword.

property

Operation

The __property keyword.

property get

Operation

The __property keyword and a read property.

property set

Operation

The __property keyword and a write property.

Tagged Values

Tag

Applies to

Corresponds To

managedType

Class with stereotype reference, value or enumeration; Interface

The keyword used in declaration of this type. Expected values are class or struct.

Other Conventions

·The typedef and anonymous tags from native C++ are not supported
·The Pure property of an operation corresponds to the keyword __abstract.

See Also