2-120
SOMobjects Base Toolkit: Programmer’s Reference Manual
somdSOMObjFromRef Method
Purpose
Returns the SOM object corresponding to the specified object reference.
IDL Syntax
SOMObject somdSOMObjFromRef (
in SOMDObject objref);
Description
The somdSOMObjFromRef method returns the SOM object associated with the DSOM
object reference, objref. This method is called by SOMOA as part of converting a remote
request into a local method call on an object.
Parameters
receiver A pointer to a SOMDServer object.
env A pointer to the Environment structure for the method caller.
objref A pointer to the DSOM object reference to the SOM object.
Return Value
The somdSOMObjFromRef method returns the SOM object associated with the supplied
DSOM reference.
Example
#include <somd.h>
#include <stack.ih> /* user–generated */
SOMDObject objref;
Environment ev;
SOMObject obj;
...
/* myServer specific code up here */
...
/* one might want to make this call as part of the code
* that overrides the somdRefFromSOMObj method, i.e.
* in an implementation of a subclass of SOMDServer called
* myServer
*/
obj =
myServer_parent_SOMDServer_somdSOMObjFromRef(somSelf,&ev,objref);
Original Class
SOMDServer
Komentarze do niniejszej Instrukcji