![]() |
Overview Gets and sets the Context object associated with a DII request. Original class CORBA::Request
Intended Usage
The ctx method is used by a client application to get and set the list of properties that are sent with a Dynamic Invocation Interface (DII) request. The list of properties is specified using a CORBA::Context object and is used to pass information from the client environment to the server environment. For additional information, see the Context class description. The Context object associated with a DII request can also be set by the CORBA::Object::_create_request method.
IDL Syntax
void ctx(CORBA::Context_ptr p); CORBA::Context_ptr ctx() const;
Input parameters
- new_context
- A pointer to the new Context object to be associated with the DII request. If a Context object is already associated with the request, it is released. The caller retains ownership of this parameter (the Request object makes a duplicate). It is valid to pass a null pointer.
Return values
- CORBA::Context_ptr
- A pointer to the Context currently associated with the DII request, if any, or a null pointer. Ownership of the return value is maintained by the Request object; the return value must not be freed by the caller.