Analyzing header files with the same name

About this task

Suppose you want to reverse engineer the file omreactive.cpp. It has the following included files:

#include <oxf.h>
#include <omoutput.h>
#include <omreactive.h>
#include <state.h>
#include <omthread.h>
#include <aommacro.h>

To reverse engineer only omreactive.cpp and omreactive.h:

Procedure

  1. Add the file omreactive.cpp to the main Reverse Engineering window.
  2. Click Advanced to open the Reverse Engineering Options window.
  3. On the Input tab, select the Only header file with the same name radio button.
  4. On the Preprocessing tab, add the path to the oxf folder (for example, <Rational Rhapsody installation path>\Share\LangCpp). You need to set this value because the directive #include <omreactive.h> says to look for the specification file in omreactive, so you need to specify where that is.
  5. Click OK.
  6. Click Start on the Reverse Engineering window.

Results

The tool analyzes omreactive.h and ignores the other files included in the omreactive.cpp file. In the browser the oxf package displays with the OMReactive class and some of its data members. The OMReactive class has Usage dependencies to externally referenced classes and inherits from the IOxfReactive superclass.


Feedback