Bull DPX/20 Guida Utente Pagina 105

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 424
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 104
SOM Kernel Reference 1-93
somGetNthMethodData Method
Purpose
Returns method information for the nth (static or dynamic) method known to a given class.
Not generally overridden.
IDL Syntax
boolean somGetNthMethodData (
in long index,
out somMethodData md)
Note: For backward compatibility, this method does not take an Environment parameter.
Description
The somGetNthMethodData method loads a somMethodData structure with data
describing the method identified by the passed index. The index must have been produced
by a previous call to exactly the same receiver class; the same method will in general have
different indexes in different classes. If the index does not identify a method known to this
class, then false is returned; otherwise, true is returned after loading the somMethodData
structure with data corresponding to the indicated method.
Parameters
receiver A pointer to the class that produced the index value.
index An index returned as a result of a previous call of somGetMethodIndex.
md A pointer to a somMethodData structure.
Return Value
Boolean true if successful; otherwise, false.
C++ Example
#include <somcls.xh>
main
{
somEnvironmentNew();
somId gmiId = somIdFromString(”somGetMethodIndex”);
long index = _SOMClass–>somGetMethodIndex(gmiId);
somMethodData md;
boolean rc = _SOMClass–>somGetNthMethodData(index,&md);
SOM_Test(rc && somCompareIds(gmiId, md.id));
}
Related Information
Methods: somGetMethodIndex, somGetMethodData, somGetNthMethodInfo
Data Structures: somMethodData (somapi.h)
Vedere la pagina 104
1 2 ... 100 101 102 103 104 105 106 107 108 109 110 ... 423 424

Commenti su questo manuale

Nessun commento