ibm Rational Rhapsody 7.5 — Prolog

Basic code generation concepts Implementation Files The class implementation file contains implementation of methods defined in the specification file. In addition, it contains instrumentation macros and annotations. As noted previously, eliminating or modifying either instrumentation macros and annotations can hurt the tracing and functionality between your model and code. Headers and Footers You can define your own headers and footers for generated files. See the property definitions displayed in the Properties tab of the Features window. Prolog The prolog section of the implementation file includes header files for all the related classes.

You can add additional #include files using the C_ and CPP::Class/Package::ImpIncludes property. See the definition provided for the property on the applicable Properties tab of the Features window. You can wrap sections of code with #ifdef #endif directives, add compiler-specific keywords, and add #pragma directives using prolog and epilog properties. For more information, see Wrapping Code with #ifdef-#endif . The following code shows a sample prolog section:

//## package package //## class class #include " class .h" #include package .h> #include rclass1 .h> #include rclass2 .h> //------------------------------------------------------- // class .cpp //------------------------------------------------------- DECLARE_META_PACKAGE(Default) #define op1 _SERIALIZE 938 User Guide