13.1.7.2 Member Mapping
Members of a struct are mapped to the appropriate C++ data type. For basic data types (long, short, and so on), see the following table. For object references, pseudo-object references, and strings, the member is mapped to the appropriate var class:
-
CORBA::String_var
-
CORBA::Object_var
All other data types are mapped as shown in the following table.
No constructor for a generated struct exists, so none of the members are initialized. Fixed-length structs can be initialized using aggregate initialization. For example:
INVENT::Date a_date = { 1995, 10, 12 };
Variable-length members map to self-managing types; these types have constructors that initialize the member.
Parent topic: Structs