Automatic guessing on attributes happens when Cxx Designer is generating the code for a single attribute for which the automatic generation flag is set.

For attributes, which in most cases are supposed to be primitive types (integer, float, char, boolean), the automatic guessing algorithm will favour declaration by value. However, pointer declaration will be used to deal with the 0 minimum cardinality cases.

For automatic guessing on attributes, the relevant information is as follows:

The following list shows the generated declaration for an attribute named "att".

Note 1: Where the table states integer, this can be any basic type (integer, char, float, boolean).

Note 2: The std::vector is replaced by:

Note 3: An element typed undefined is generated as void*.