Bull DPX/20 Uživatelská příručka Strana 282

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 424
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 281
1 2 ... 277 278 279 280 281 282 283 284 285 286 287 ... 423 424

Komentáře k této Příručce

Žádné komentáře