2-43
DSOM Framework Reference
find_classes_by_impldef Method
Purpose
Returns a sequence of class names associated with a server.
IDL Syntax
sequence<string> find_classes_by_impldef (
in ImplId implid );
Description
The find_classes_by_impldef method searches the class index and returns the sequence
of class names supported by a server with the specified implid.
Parameters
receiver A pointer to the ImplRepository object.
env A pointer to the Environment structure for the method caller.
implid The ImplId that identifies the server implementation of interest.
Return Value
A sequence of strings is returned. Ownership of the sequence structure, the string array
buffer, and the strings themselves is transferred to the caller.
An exception is returned if there was an error reading the Implementation Repository.
Example
#include <somd.h>
Environment ev;
SOMDServer server;
ImplementationDef impldef;
ImplId implid;
sequence(string) classes;
...
server = _find_server_by_name(SOMD_ObjectMgr,&ev,”stackServer”);
impldef = _get_implementation(server,&ev);
implid = __get_impl_id(impldef,&ev);
classes = _find_classes_by_impldef(SOMD_ImplRepObject,&ev,implid);
Original Class
ImplRepository
Kommentare zu diesen Handbüchern