2-46
SOMobjects Base Toolkit: Programmer’s Reference Manual
find_impldef_by_class Method
Purpose
Returns a sequence of implementation definitions for servers that are associated with a
specified class.
IDL Syntax
sequence<ImplementationDef> find_impldef_by_class (
in string classname);
Description
Returns a sequence of ImplementationDefs for those servers that have registered an
association with a specified class. Typically, a server will be associated with the classes it
knows how to implement by registering its known classes via the add_class_to_impldef
method.
Parameters
receiver A pointer to the ImplRepository object.
env A pointer to the Environment structure for the method caller.
classname A string whose value is the class name of interest.
Return Value
Copies of all ImplementationDef objects are returned in a sequence. Ownership of the
sequence structure, the object array buffer, and the objects 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;
sequence(ImplementationDef) impldefs;
...
impldefs =
_find_impldef_by_class(SOMD_ImplRepObject,&ev,”Stack”);
Original Class
ImplRepository
Komentáře k této Příručce