Running reverse operations

Launching the Reverse command

The first step in the C++ reverse procedure is to select the model root and run the actual reverse command from the context menu.


Launching the “Reverse C++ application” command

The “C++ Reverse” window

After running the “Reverse C++ application” command, the “C++ Reverse” window then appears.  This window is used to:

Selecting the files to be reversed

The first window to appear when the “Reverse application” command is launched is used to select the files you wish to reverse.

This window contains three zones:


Selecting directories to be reversed

Steps:

  1. In the top zone, indicate the directory you want to reverse from.
    The “content” zone refreshes automatically to display the files in this directory.
  2. Change the body or header extensions if they don’t match those from your project to reverse. Select “cpp” files to reverse a complete application.
    “.h” is sufficient to carry out a structural reverse of a library.
  3. Check the files or directory to be reversed.
  4. Click on “Next” to continue.

Defining the includes

The second “C++ Reverse” window, which appears after you click on “Next” in the first window, is used to select any files or directories inside which you want to search for included files.  These files will not be reversed.

This window contains two zones:


Selecting external include files and directories

Steps:

  1. Click on the add directory button.
  2. In the directory chooser, select the directory to include, for example the include path from Visual Studio.
  3. Press OK.
  4. Click on the “Next” button to continue.

Defining reverse options

The third and final “C++ Reverse” window, which appears after you click on “Next” in the second window, is used to define the various options used during reverse operations.

This window contains two zones:


Defining reverse options

Steps:

  1. Select a granularity from those available in the dropdown list.
  2. Define any macros you wish to use.
  3. Click on “Reverse” to start the reverse.

Reverse reports

After the reverse operation has been completed, a window named “Report of the reverse” appears. This window provides you with information on the reverse operation, as well as indicating any errors which were encountered.