Bull DPX/20 Guida Utente Pagina 207

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 424
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 206
2-39
DSOM Framework Reference
add_class_to_impldef Method
Purpose
Associates a class with a server.
IDL Syntax
void add_class_to_impldef (
in ImplId implid,
in string classname );
Description
Associates a class, identified by name, with a server, identified by its ImplId. This type of
association is used to lookup server implementations via the find_impldef_by_class
method.
Parameters
receiver A pointer to the ImplRepository object.
env A pointer to the Environment structure for the method caller.
implid The ImplId identifier for the ImplementationDef of the desired server.
classname A string identifying the class name.
Return Value
An exception is returned if there was an error updating the Implementation Repository.
Example
#include <somd.h>
Environment ev;
SOMDServer server;
ImplementationDef impldef;
ImplId implid;
...
server = _somdFindServerByName(SOMD_ObjectMgr,&ev,”stackServer”);
impldef = _get_implementation(server,&ev);
implid = __get_impl_id(impldef,&ev);
_add_class_to_impldef(SOMD_ImplRepObject,&ev,implid,”Queue”);
Original Class
ImplRepository
Vedere la pagina 206
1 2 ... 202 203 204 205 206 207 208 209 210 211 212 ... 423 424

Commenti su questo manuale

Nessun commento