Next: , Up: Specifying Events   [Contents][Index]


3.2.3.1 Event Syntax

An event is declared by its direction (in or out), type and name.

The direction indicates if the event is received by (in) or sent (out) from a component that will be implementing the interface

Out events are only allowed to have void type.

   in return-type event-name();     // an in event declaration
   out void event-name();           // an out event declaration

Events can also have a parameter list to pass data variables, see Using Data Variables and Parameters,.

[in/out] return-type event-name(parameter-list)

The parameter list is a set of the following: [in/out/inout] indicating whether the datatype is input for or output from the event, the parameter type and parameter name. See also Using Data Variables and Parameters,.