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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 424
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 211
2-44
SOMobjects Base Toolkit: Programmers Reference Manual
find_impldef Method
Purpose
Returns a server implementation definition given its ID.
IDL Syntax
ImplementationDef find_impldef (
in ImplId implid);
Description
Finds and returns the ImplementationDef object whose ID is implid.
Parameters
receiver A pointer to the ImplRepository object.
env A pointer to the Environment structure for the method caller.
implid The ImplId of the desired ImplementationDef.
Return Value
A copy of the desired ImplementationDef object is returned. Ownership of the object is
transferred to the caller.
An exception is returned if there was an error reading the Implementation Repository.
Example
#include <somd.h>
main(int argc, char **argv)
{
Environment ev;
SOM_InitEnvironment(&ev);
/* Initialize the DSOM run–time environment */
SOMD_Init(&ev);
/* Retrieve its ImplementationDef from the Implementation
Repository by passing its implementation ID as a key */
SOMD_ImplDefObject =
_find_impldef(SOMD_ImplRepObject, &ev, argv[1]);
/* Tell DSOM that the server is ready to process requests */
_impl_is_ready(SOMD_SOMOAObject, &ev, SOMD_ImplDefObject);
...
}
Original Class
ImplRepository
Przeglądanie stron 211
1 2 ... 207 208 209 210 211 212 213 214 215 216 217 ... 423 424

Komentarze do niniejszej Instrukcji

Brak uwag