The
following
syntax is used for C code generation
support for interfaces and ports. In these examples, we have an interface
x, an operation f, a port p, and a class A.
Calling an operation through a C interface
[Interface]_[Operation]([object realizing the interface]
[, argList])
Example: To call operation
x_f (object
realizing the interface, port number), where the port number
is 5, do:
x_f(me->itsl, 5);
Sending
an event through a C interface
RiCGEN_[Interface]([object realizing the interface], [event([argList])])
Example: To send event RiCGEN_l(object
realizing the interface, port number), do: