Bull DPX/20 Betriebsanweisung Seite 120

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 424
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 119
1-108 SOMobjects Base Toolkit: Programmers Reference Manual
somFindClass Method
Purpose
Finds the class object for a class.
IDL Syntax
SOMClass somFindClass (
in somId classId,
in long majorVersion,
in long minorVersion);
Note: For backward compatibility, this method does not take an Environment parameter.
Description
The somFindClass method returns the class object for the specified class. This method
first uses somLocateClassFile (see the following paragraph) to obtain the name of the file
where the class’s code resides, then uses somFindClsInFile.
If the requested class has not yet been created, the somFindClass method attempts to
load the class dynamically by loading its dynamically linked library and invoking its “new
class” procedure.
The somLocateClassFile method uses the following steps:
1. If the entry in the Interface Repository for the class specified by classId contains a
dllname modifier, this value is used as the file name for loading the library. (For
information about the dllname modifier, refer to the topic “Modifier statements” in
Chapter 4, “SOM IDL and the SOM Compiler,” of the SOMobjects Developer Toolkit
Users Guide.)
2. In the absence of a dllname modifier, the class name is assumed to be the file name for
the library. Use the somFindClsInFile method if you wish to explicitly pass the file name
as an argument.
If majorVersion and minorVersion are not both zero, they are used to check the class
version information against the callers expectations. An implementation is compatible with
the specified version numbers if it has the same major version number and a minor version
number that is equal to or greater than minorVersion.
Parameters
receiver Usually SOMClassMgrObject (or a pointer to an instance of a
user-supplied subclass of SOMClassMgr).
classId The somId representing the name of the class.
majorVersion The class’s major version number.
minorVersion The class’s minor version number.
Return Values
A pointer to the requested class object, or NULL if the class could not be found or created.
Seitenansicht 119
1 2 ... 115 116 117 118 119 120 121 122 123 124 125 ... 423 424

Kommentare zu diesen Handbüchern

Keine Kommentare