Roundtripping packages

IBM® Rational® Rhapsody® roundtrips function argument name changes in the package implementation file; however, changes to argument types are not roundtripped. When the name is changed, the argument description is lost.

The product does not roundtrip changes to the initial values of variables.

The following table lists the modifications can be roundtripped in a package specification file.

Element Change
Event
  • Modify the description.

    Changes to argument descriptions are not roundtripped.
  • Add or remove event "arguments."

    Event arguments are actually attributes of the corresponding event class.
  • Modify an event "argument" type and name.

    When the name is changed, the argument description is lost.
Function
  • Modify the description.

    Changes to argument descriptions are not roundtripped.
  • Add or remove a function.
  • Modify the return type for an existing function.
Function argument
  • Add or remove a function argument.
  • Modify an argument type for an existing function.

    Changes to argument names are not roundtripped.
Instance
  • Add or remove an instance.
  • Modify a name or class type for an instance.
Variable
  • Modify description.

    Changes to argument descriptions are not roundtripped.
  • Modify a variable type or name.
  • Add or remove a variable.

To remove a function, variable, or instance with dynamic model-code associativity (DMCA) active:

  1. Remove the element from the .h or .cpp file.
  2. Switch focus to the .cpp or .h file while pressing the Shift key.
  3. Remove the element from the second file.

The Shift key prevents dynamic model-code associativity from firing before you have made the changes to the second file.

To remove a function, variable, or instance with dynamic model-code associativity set to None:

  1. Remove the element from the .h or .cpp file, then save the file.
  2. Remove the element from the .cpp or .h file, then save the file.

Feedback