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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 424
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 300
2-133
DSOM Framework Reference
Example
#include <somd.h>
#include <repostry.h>
#include <intfacdf.h>
Environment ev;
ReferenceData id;
InterfaceDef intfdef;
SOMDObject objref;
string fname; /* file name to be saved with reference */
...
/* create the id for the reference */
id._maximum = id._length = strlen(fname)+1;
id._buffer = (string) SOMMalloc(strlen(fname)+1);
strcpy(id._buffer,fname);
/* get the interface def object for interface Foo*/
intfdef = _lookup_id(SOM_InterfaceRepository, &ev, ”Foo”);
objref = _create_constant(SOMD_SOMOAObject,
&ev, id, intfdef, SOMD_ImplDefObject);
Original Class
SOMOA
Related Information
Methods: create, create_SOM_ref, dispose, get_id, is_constant
Przeglądanie stron 300
1 2 ... 296 297 298 299 300 301 302 303 304 305 306 ... 423 424

Komentarze do niniejszej Instrukcji

Brak uwag