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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 424
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 281
2-114
SOMobjects Base Toolkit: Programmers Reference Manual
somdCreateObj Method
Purpose
Creates an object of the specified class.
IDL Syntax
SOMObject somdCreateObj (
in Identifier objclass,
in string hints);
Description
The somdCreateObj method creates an object of the specified class.
Parameters
receiver A pointer to a SOMDServer object capable of creating an instance of the
specified class.
env A pointer to the Environment structure for the method caller.
objclass The class of the object for which an instance is to be created.
hints A string which may optionally be used to specify special creation options.
Return Value
The somdCreateObj method returns a SOMObject of the class specified by objclass.
Example
#include <somd.h>
#include <stack.h> /* provided by user */
Stack stk;
Environment ev;
SOMDServer server;
SOM_InitEnvironment(&ev);
SOMD_Init(&ev);
StackNewClass(0,0);
server =
_somdFindServerByName(SOMD_ObjectMgr, &ev,”stackServer”);
stk = _somdCreateObj(server, &ev, ”Stack”, ””);
...
_somdDestroyObject(SOMD_ObjectMgr, &ev, stk);
Original Class
SOMDServer
Przeglądanie stron 281
1 2 ... 277 278 279 280 281 282 283 284 285 286 287 ... 423 424

Komentarze do niniejszej Instrukcji

Brak uwag