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

C++ Conventions

Enterprise Architect supports round trip engineering of C++, including the Managed C++ and C++/CLI extensions, where the following conventions are used.

Reference

Stereotypes

Stereotype

Applies To

Corresponds To

enumeration

Class

An enum type.

friend

Operation

The friend keyword.

property get

Operation

A read property.

property set

Operation

A write property.

struct

Class

A struct type.

typedef

Class

A typedef statement, where the parent is the original type name.

union

Class

A union type.

 
Tagged Values

Tag

Applies To

Corresponds To

afx_msg

Operation

The afx_msg keyword.

anonymous

Class also containing the Tagged Value typedef

The name of this Class being only defined by the typedef statement.

attribute_name

Operation with stereotype property get or property set

The name of the variable behind this property.

bitfield

Attribute

The size, in bits, allowed for storage of this attribute.

bodyLocation

Operation

The location the method body is generated to; expected values are header, classDec or classBody.

callback

Operation

A reference to the CALLBACK macro.

explicit

Operation

The explicit keyword.

initializer

Operation

A constructor initialization list.

inline

Operation

The inline keyword and inline generation of the method body.

mutable

Attribute

The mutable keyword.

throws

Operation

The exceptions that are thrown by this method.

typedef

Class with stereotype other than typedef

This Class being defined in a typedef statement.

typeSynonyms

Class

The typedef name and/or fields of this type.

volatile

Operation

The volatile keyword.

Topics

Topic

Detail

See also

Other Conventions

Namespaces are generated for each package below a namespace root
By Reference attributes correspond to a pointer to the type specified
The Transient property of an attribute corresponds to the volatile keyword
The Abstract property of an attribute corresponds to the virtual keyword
The Const property of an operation corresponds to the const keyword, specifying a constant return type
The Is Query property of an operation corresponds to the const keyword, specifying the method doesn't modify any fields
The Pure property of an operation corresponds to a pure virtual method using the "= 0" syntax
The Fixed property of a parameter corresponds to the const keyword

 

Namespaces

Learn more