将结构建模为类型而非类

要使 IBM® Rational® Rhapsody® 将结构建模为类型而非类,单击反向工程高级选项其他选项卡上的添加按钮,以便输入结构的名称或使用通配符将映射应用到所有结构。

关于此任务

例如,考虑一下源文件:

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;

如果在其他选项卡上不指定任何内容,结构将不会建模为类型,如下图中所示。

请注意以下信息:

如果在类型列表中添加了通配符符号 (*) 以使所有结构都映射到类型,结果如下:

请注意以下信息:


反馈