2-44
SOMobjects Base Toolkit: Programmer’s Reference Manual
find_impldef Method
Purpose
Returns a server implementation definition given its ID.
IDL Syntax
ImplementationDef find_impldef (
in ImplId implid);
Description
Finds and returns the ImplementationDef object whose ID is implid.
Parameters
receiver A pointer to the ImplRepository object.
env A pointer to the Environment structure for the method caller.
implid The ImplId of the desired ImplementationDef.
Return Value
A copy of the desired ImplementationDef object is returned. Ownership of the object is
transferred to the caller.
An exception is returned if there was an error reading the Implementation Repository.
Example
#include <somd.h>
main(int argc, char **argv)
{
Environment ev;
SOM_InitEnvironment(&ev);
/* Initialize the DSOM run–time environment */
SOMD_Init(&ev);
/* Retrieve its ImplementationDef from the Implementation
Repository by passing its implementation ID as a key */
SOMD_ImplDefObject =
_find_impldef(SOMD_ImplRepObject, &ev, argv[1]);
/* Tell DSOM that the server is ready to process requests */
_impl_is_ready(SOMD_SOMOAObject, &ev, SOMD_ImplDefObject);
...
}
Original Class
ImplRepository
Komentarze do niniejszej Instrukcji