Modeling structures as types instead of classes

To have IBM® Rational® Rhapsody® model structures as types instead of classes, click the Add button on the Misc tab of the Reverse Engineering Advanced Options window so that you can enter the names of the structures or use a wildcard to apply the mapping to all structures.

About this task

For example, consider the following source file:

struct perf_log_block
{
   int cassette_mounts;
};
struct perf_log_block blk_pos[ FIVE ];
another_block a_block[ FIVE ];

typedef struct _vanillaThing
{
   char    field1;
} vanillaThing_t, *vanillaThing_p, **vanillaThing_h;
typedef struct
{
   int     field4;
} obMethod_1_subType_2_t, *obMethod_1_subType_2_p,
   **obMethod_1_subType_2_h;

If you do not specify anything on the Misc tab, the structures are not modeled as types, as shown in the following figure.

Note the following information:

If you add the wildcard symbol (*) to the Types list so all structures are mapped to types, the results are as follows:

Note the following information:


Feedback