2-89
DSOM Framework Reference
somdProxyGetClassName Method
Purpose
Returns the class name for the local proxy object.
IDL Syntax
string somdProxyGetClassName ( );
Description
The somdProxyGetClassName method executes the somGetClassName method call on
the local proxy object and returns the proxy’s class name. This method has been provided
when the application program wants to be explicit about getting the class name of the proxy
object vs. the target object.
Parameters
receiver A pointer to the SOMDClientProxy object for the desired remote target
object.
env A pointer to the Environment structure for the method caller.
Return Value
The somdProxyGetClassName method returns a string containing the class name of the
local proxy object.
Example
#include <somd.h>
#include <car.h>
Environment ev;
Car car;
string carProxyClassName;
string somdObjectId;
...
/* restore proxy from its string form */
FileRead(”/u/joe/mycar”, &somdObjectId);
car = _somdGetObjectFromId(SOMD_ObjectMgr, &ev, somdObjectId);
...
carProxyClassName = _somdProxyGetClassName(car, &ev);
Original Class
SOMDClientProxy
Kommentare zu diesen Handbüchern