2-45
DSOM Framework Reference
find_impldef_by_alias Method
Purpose
Returns a server implementation definition, given its user-friendly alias.
IDL Syntax
ImplementationDef find_impldef_by_alias (
in string alias_name);
Description
Finds and returns the ImplementationDef object whose alias is alias_name.
Parameters
receiver A pointer to the ImplRepository object.
env A pointer to the Environment structure for the method caller.
alias_name User-friendly name used to identify the implementation.
Return Value
A copy of the desired ImplementationDef object is returned, and ownership of the object is
transferred to the caller. Or, if the specified alias is not found in the Implementation
Repository, NULL is returned.
An exception is returned if there was an error reading the Implementation Repository.
Example
#include <somd.h>
Environment ev;
ImplementationDef impldef;
...
impldef =
_find_impldef_by_name(SOMD_ImplRepObject,&ev,”stackServer”);
_delete_impldef(SOMD_ImplRepObject,&ev,__get_impl_id(impldef,&ev));
Original Class
ImplRepository
Commenti su questo manuale