2-70
SOMobjects Base Toolkit: Programmer’s Reference Manual
get_default_context Method
Purpose
Returns the default process Context object.
IDL Syntax
ORBStatus get_default_context (
out Context ctx);
Description
The get_default_context method gets the default process Context object.
Ownership of the allocated Context object is transferred to the caller.
Parameters
receiver A pointer to the ORB object.
env A pointer to the Environment structure for the method caller.
ctx A pointer to where the method will store a pointer to the returned Context
object.
Return Value
The get_default_context method returns an ORBStatus return code: 0 indicates success,
while a non-zero value is a DSOM error code (see Chapter 6 of the SOM Toolkit User’s
Guide).
Example
#include <somd.h>
Environment ev;
Context cxt;
long rc;
...
rc = _get_default_context(SOMD_ORBObject, &ev, &cxt);
Original Class
ORB
Komentarze do niniejszej Instrukcji