Managed C++ Conventions

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.

Reference

Stereotypes

Stereotype

Applies To

Corresponds To

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.

reference

Class

The __gc keyword.

value

Class

The __value keyword.

 
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.

Topics

Topic

Detail

See also

Other Conventions

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

 

 

Learn more