ibm Rational Rhapsody 7.5 — Serialization Instrumentation

Basic code generation concepts For example: //// Framework entries //// public : State* state1 ; // State variables State* state2 ; void rootStateEntDef(); // The initial transition // method int state1 Take event1 (); // event takers int state2 Take event2 (); private : void initRelations(); //InitRelations or //InitStatechart is //generated to initialize //framework members void cleanUpRelations();//CleanupRelations or //CleanupStatechart is //generated to clean up //framework members in //destruction. Note The initRelations() and cleanUpRelations() operations are generated only if the CG::Class::InitCleanUpRelations property is set to Checked .

See the definition provided for the property on the applicable Properties tab of the Features window. Events Interface The section of the code illustrates events consumed by the class. It is for documentation purposes only because all events are handled through a common interface found in OMReactive . This section is useful if you want to implement the event processing yourself. For example: //// Events consumed //// public : // Events: // event1 // event2 Note that code generation supports array types in events. Is it possible to create the following GEN() : Client->GEN(E("Hello world!")); In this call, E is defined as follows: class E :

public OMEvent { Char message[13]; }; Serialization Instrumentation If you included instrumentation, the following instrumentation macro is included in the header file: 936 User Guide