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
Kommentare zu diesen Handbüchern