Bull DPX/20 Guia do Utilizador Página 122

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 424
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 121
1-110 SOMobjects Base Toolkit: Programmers Reference Manual
somFindClsInFile Method
Purpose
Finds the class object for a class, given a filename that can be used for dynamic loading.
IDL Syntax
SOMClass somFindClsInFile (
in somId classId,
in long majorVersion,
in long minorVersion,
in string file);
Note: For backward compatibility, this method does not take an Environment parameter.
Description
The somFindClsInFile method returns the class object for the specified class. This method
is the same as somFindClass except that the caller provides the filename to be used if
dynamic loading is needed.
If the requested class has not yet been created, the somFindClsInFile method attempts to
load the class dynamically by loading the specified library and invoking its “new class”
procedure.
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.
file A string representing the filename to be used if dynamic loading is required.
Return Value
A pointer to the requested class object, or NULL if the class could not be found or created.
Vista de página 121
1 2 ... 117 118 119 120 121 122 123 124 125 126 127 ... 423 424

Comentários a estes Manuais

Sem comentários