2-94
SOMobjects Base Toolkit: Programmer’s Reference Manual
somdTargetGetClassName Method
Purpose
Returns the class name for the remote target object.
IDL Syntax
string somdTargetGetClassName ( );
Description
The somdTargetGetClassName method forwards the somGetClassName method call to
the remote target object and returns the class name for that object. This method has been
provided when the application program wants to be explicit about getting the class name of
the remote target object vs. the proxy 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 somdTargetGetClassName method returns a string containing the class name of the
remote target object.
Example
#include <somd.h>
#include <car.h>
Environment ev;
Car car;
string carClassName;
string somdObjectId;
...
/* restore proxy from its string form */
FileRead(”/u/joe/mycar”, &somdObjectId);
car = _somdGetObjectFromId(SOMD_ObjectMgr, &ev, somdObjectId);
...
carClassName = _somdTargetGetClassName(car, &ev);
Original Class
SOMDClientProxy
Related Information
Methods: somdProxyGetClassName
Kommentare zu diesen Handbüchern