2-23
DSOM Framework Reference
get_id Method
Purpose
Returns reference data associated with the referenced object.
IDL Syntax
ReferenceData get_id (
in SOMDObject obj);
Description
The get_id method returns the reference data associated with the referenced object.
Parameters
receiver A pointer to a BOA (SOMOA) object for the server.
env A pointer to the Environment structure for the method caller.
obj A pointer to a SOMDObject object for which to return the ReferenceData.
Return Value
The get_id method returns a ReferenceData structure associated with the referenced
object.
Example
#include <somd.h>
#include <repostry.h>
#include <intfacdf.h>
SOMDObject objref;
ReferenceData id1, id2;
InterfaceDef intfdef;
...
objref =
_create(SOMD_SOMOAObject,&ev, id1, intfdef, SOMD_ImplDefObject);
...
/* get the ReferenceData from a SOMDObject */
id2 = _get_id(SOMD_SOMOAObject, &ev, objref);
Original Class
BOA
Related Information
Methods: create, create_constant, dispose
Komentarze do niniejszej Instrukcji