Structure declarations

The structure declaration section of the specification file allocates memory for object types and events that belong to the package. IBM® Rational® Rhapsody® names objects according to their type:

For example, the file Default.h includes the following structure declarations:

struct Display_t;
extern struct Display_t Display;

Event structures are defined in the specification file for the package that owns the event.

If the Default package contains an object type A and an event evStart, the following structures are allocated in this section:

struct A;
struct evStart;

The A structure is defined in the specification file for A (A.h); the event structure is defined in the specification file for the package that owns the event.

For more information about implicit and explicit types, see Structural model.


Feedback