Bull DPX/20 Podręcznik Użytkownika Strona 100

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 424
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 99
1-88 SOMobjects Base Toolkit: Programmers Reference Manual
somGetMethodData Method
Purpose
Returns method information for a specified method, which must have been introduced by
the receiver class or an ancestor of that class. Not generally overridden.
IDL Syntax
boolean somGetMethodData (
in somId methodId,
out somMethodData md);
Note: For backward compatibility, this method does not take an Environment parameter.
Description
The somGetMethodData method loads a somMethodData structure with data describing
the method identified by the passed methodId. If methodId does not identify a method
known to the receiver, 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.
methodId A somId for the method’s name.
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”);
somMethodData md;
boolean rc = _SOMClass–>somGetMethodData(gmiId,&md);
SOM_Test(rc && somCompareIds(gmiId, md.id));
}
Related Information
Methods: somGetMethodIndex, somGetMethodData, somGetNthMethodInfo
Data Structures: somMethodData (somapi.h)
Przeglądanie stron 99
1 2 ... 95 96 97 98 99 100 101 102 103 104 105 ... 423 424

Komentarze do niniejszej Instrukcji

Brak uwag