Bull DPX/20 Uživatelská příručka Strana 361

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 424
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 360
Metaclass Framework Reference 4-3
sommAfterMethod Method
Purpose
Specifies a method that is automatically called after execution of each client method.
IDL Syntax
void sommAfterMethod (
in SOMObject object,
in somId methodID,
in void *returnedvalue,
in va_list ap);
Description
The sommAfterMethod specifies a method that is automatically called after execution of
each client method. The sommAfterMethod method is introduced in the
SOMMBeforeAfter metaclass. The default implementation does nothing until it is
overridden. The sommAfterMethod method is not called directly by the user. To define the
desired “after” method, sommAfterMethod must be overridden in a metaclass that is a
subclass (child) of the SOMMBeforeAfter metaclass.
Warning: somFree is among the methods that get before/after behavior, which implies that
the following obligation is imposed on the programmer of a sommAfterMethod. Specifically,
care must be taken to guard against sommAfterMethod being called after somFree, at
which time the object no longer exists.
Parameters
Refer to the diagram in the following section for further clarification of these arguments.
receiver A pointer to an object (class) of metaclass SOMMBeforeAfter representing
the class object that supports the method (such as, “myMethod”) for which
the “after” method will apply.
ev A pointer where the method can return exception information if an error is
encountered. The dispatch method of SOMMBeforeAfter sets this
parameter to NULL before dispatching the first sommBeforeMethod.
object A pointer to the instance of the receiver on which the method is invoked.
methodId The SOM ID of the method (such as, “myMethod”) that was invoked.
returnedvalue A pointer to the value returned by invoking the method (“myMethod”) on an
object.
ap The list of input arguments to the method (“myMethod”).
Zobrazit stránku 360
1 2 ... 356 357 358 359 360 361 362 363 364 365 366 ... 423 424

Komentáře k této Příručce

Žádné komentáře