Excluding code from roundtripping and reverse engineering

Even if you have elected not to use the Code-centric settings, there are situations where you may prefer to have Rational® Rhapsody® exclude certain code blocks from the roundtrip / reverse engineering process so that the code is not reflected in the model.

About this task

For such situations, Rational Rhapsody provides a code exclusion feature that preserves code blocks as they appeared in your code. When code is generated for your model, the code blocks will appear as they did in your original code.

To prevent a block of code from being imported into your model:

Procedure

  1. For C code, add the following comment before the block: /*#[ preserve*/ For C++ code, add the following comment before the block: //#[ preserve
  2. For C code, add the following comment after the block: /*#] preserve*/ For C++ code, add the following comment after the block: //#] preserve

Feedback