2-40
SOMobjects Base Toolkit: Programmer’s Reference Manual
add_impldef Method
Purpose
Adds an implementation definition to the Implementation Repository.
IDL Syntax
void add_impldef (
in ImplementationDef impldef);
Description
Adds the specified ImplementationDef object to the Implementation Repository.
Note: the impl_id field of the ImplementationDef is ignored. A new impl_id value will be
created for the newly added ImplementationDef.
Parameters
receiver A pointer to the ImplRepository object.
env A pointer to the Environment structure for the method caller.
impldef A pointer to the ImplementationDef object to add to the Implementation
Repository.
Return Value
An exception is returned if there was an error updating the Implementation Repository.
Example
#include <somd.h>
Environment ev;
ImplementationDef impldef;
...
impldef = ImplementationDefNew();
__set_impl_program(impldef,&ev,”/u/servers/myserver”);
/* set more of the impldef’s attributes here */
...
_add_impldef(SOMD_ImplRepObject,&ev,impldef);
Original Class
ImplRepository
Comentários a estes Manuais