2-72
SOMobjects Base Toolkit: Programmer’s Reference Manual
string_to_object Method
Purpose
Converts an externalized (string) form of an object reference into an object reference.
IDL Syntax
SOMDObject string_to_object (
in string str);
Description
The string_to_object method converts the externalized (string) form of an object reference
into an object reference.
Parameters
receiver A pointer to the ORB object.
env A pointer to the Environment structure for the method caller.
str A pointer to a character string representing the externalized form of the
object reference.
Return Value
The string_to_object method returns a SOMDObject object.
Example
#include <somd.h>
#include <car.h>
Environment ev;
Car car;
string objrefstr;
...
/* restore proxy from its string form */
FileRead(”/u/joe/mycar”, &objrefstr);
car = _string_to_object(SOMD_ORBObject, &ev, objrefstr);
Original Class
ORB
Related Information
Methods: object_to_string
Comentários a estes Manuais