14.17 Requestメンバー関数
これらのメンバー関数のC++へのマッピングは次のとおりです:
// 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();
};ノート:
add_*_arg、set_return_type、およびreturn_valueメンバー関数は、属性ベースのアクセサの使用を簡略化するものとして追加されます。
次の項では、これらのメンバー関数について説明します。
- 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
親トピック: CORBA API