Bull DPX/20 User's Guide Page 207

  • Download
  • Add to my manuals
  • Print
  • Page
    / 424
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 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
Page view 206
1 2 ... 202 203 204 205 206 207 208 209 210 211 212 ... 423 424

Comments to this Manuals

No comments