2-88
SOMobjects Base Toolkit: Programmer’s Reference Manual
somdProxyGetClass Method
Purpose
Returns the class object for the local proxy object.
IDL Syntax
SOMClass somdProxyGetClass ( );
Description
The somdProxyGetClass method executes the somGetClass method call on the local
proxy object and returns a pointer to the proxy’s class object. This method has been
provided when the application program wants to be explicit about getting the class object
for the proxy object vs. the target object.
Parameters
receiver A pointer to the SOMDClientProxy object.
env A pointer to the Environment structure for the method caller.
Return Value
The somdProxyGetClass method returns a pointer to the class object for the local proxy
object.
Example
#include <somd.h>
#include <car.h>
Environment ev;
Car car;
SOMClass carProxyClass;
string somdObjectId;
...
/* restore proxy from its string form */
FileRead(”/u/joe/mycar”, &somdObjectId);
car = _somdGetObjectFromId(SOMD_ObjectMgr, &ev, somdObjectId);
...
carProxyClass = _somdProxyGetClass(car, &ev);
Original Class
SOMDClientProxy
Komentarze do niniejszej Instrukcji