14.17 Request Member Functions
The mapping of these member functions to C++ is as follows:
// C++
class Request
{
public:
Object_ptr target() const;
const char *operation() const;
NamedValue_ptr result();
NVList_ptr arguments();
Environment_ptr env();
ExceptionList_ptr exceptions();
ContextList_ptr contexts();
void ctx(Context_ptr);
Context_ptr ctx() const
// argument manipulation helper functions
Any &add_in_arg();
Any &add_in_arg(const char* name);
Any &add_inout_arg():
Any &add_inout_arg(const char* name);
Any &add_out_arg():
Any &add_out_arg(const char* name);
void set_return_type(TypeCode_ptr tc);
Any &return_value();
void invoke();
void send_oneway();
void send_deferred();
void get_response();
Boolean poll_response();
};
Note:
Theadd_*_arg
, set_return_type
, and return_value
member functions are added as shortcuts for using the attribute-based accessors.
The following sections describe these member functions.
- CORBA::Request::arguments
- CORBA::Request::ctx(Context_ptr)
- CORBA::Request::get_response
- CORBA::Request::invoke
- CORBA::Request::operation
- CORBA::Request::poll_response
- CORBA::Request::result
- CORBA::Request::env
- CORBA::Request::ctx
- CORBA::Request::contexts
- CORBA::Request::exceptions
- CORBA::Request::target
- CORBA::Request::send_deferred
- CORBA::Request::send_oneway
Parent topic: CORBA API