Bull DPX/20 Guida Utente Pagina 40

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 424
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 39
1-28 SOMobjects Base Toolkit: Programmers Reference Manual
somResolve Function
Purpose
Obtains a pointer to the procedure that implements a method for a particular SOM object.
Syntax
somMethodPtr somResolve (SOMObject obj, somMToken mToken);
Description
The somResolve function returns a pointer to the procedure that implements the specified
method for the specified SOM object. This pointer can then be used to invoke the method.
The somResolve function can only be used to obtain a method procedure for a static
method (one declared in an IDL or OIDL specification for a class); dynamic methods are not
supported by method tokens.
For C and C++ programmers, the SOM usage bindings for SOM classes provide more
convenient mechanisms for invoking methods. These bindings use the SOM_Resolve and
SOM_ResolveNoCheck macros, which construct a method token expression from the
class name and method name, and call somResolve.
Parameters
obj A pointer to the object whose method procedure is required.
mToken The method token for the method to be resolved. The SOM API requires
that if the class “XYZ” introduces the static method foo, then the method
token for foo is found in the class data structure for “XYZ” (called
XYZClassData) in the structure member named “foo” (that is, at
XYZClassData.foo). Method tokens can also be obtained using the
somGetMethodToken method.
Return Value
A somMethodPtr pointer to the procedure that implements the specified method for the
specified SOM object.
Vedere la pagina 39
1 2 ... 35 36 37 38 39 40 41 42 43 44 45 ... 423 424

Commenti su questo manuale

Nessun commento