TAO_DynamicInterface 3.1.4
Loading...
Searching...
No Matches
Public Member Functions | List of all members
CORBA::Request Class Reference

CORBA::Request. More...

#include <Request.h>

Collaboration diagram for CORBA::Request:
Collaboration graph
[legend]

Public Member Functions

CORBA::Object_ptr target () const
 Return the target of this request.
 
const CORBA::Charoperation () const
 Return the operation name for the request.
 
CORBA::NVList_ptr arguments ()
 Return the arguments for the request.
 
CORBA::NamedValue_ptr result ()
 Return the result for the request.
 
CORBA::ExceptionList_ptr exceptions ()
 Return the exceptions resulting from this request.
 
CORBA::Context_ptr ctx () const
 Accessor for the Context member.
 
void ctx (CORBA::Context_ptr)
 Mutator for the Context member.
 
CORBA::ContextList_ptr contexts ()
 
Argument manipulation helper functions.

Arg adders, one for each type of parameter, with and without optional name. Returns reference to Any for insertion using <<=.

CORBA::Any & add_in_arg ()
 Initialize the return type.
 
CORBA::Any & add_in_arg (const char *name)
 Initialize the return type.
 
CORBA::Any & add_inout_arg ()
 Initialize the return type.
 
CORBA::Any & add_inout_arg (const char *name)
 Initialize the return type.
 
CORBA::Any & add_out_arg ()
 Initialize the return type.
 
CORBA::Any & add_out_arg (const char *name)
 Initialize the return type.
 
void set_return_type (CORBA::TypeCode_ptr tc)
 Initialize the return type.
 
CORBA::Any & return_value ()
 Returns reference to Any for extraction using >>=.
 
void invoke ()
 Perform method resolution and invoke an appropriate method.
 
void send_oneway ()
 Send a oneway request.
 

The 'deferred synchronous' methods.

The 'deferred synchronous' methods.

typedef CORBA::Request_ptr _ptr_type
 Target object.
 
typedef CORBA::Request_var _var_type
 Target object.
 
typedef CORBA::Request_out _out_type
 Target object.
 
class ::TAO_Dynamic_Adapter_Impl
 Target object.
 
CORBA::Object_ptr target_
 Target object.
 
CORBA::ORB_var orb_
 Pointer to our ORB.
 
const char * opname_
 Operation name.
 
CORBA::NVList_ptr args_
 Parameter list.
 
CORBA::NamedValue_ptr result_
 Result of the operation.
 
CORBA::Flags flags_
 Invocation flags.
 
CORBA::ExceptionList_var exceptions_
 List of exceptions raised by the operation.
 
CORBA::ContextList_ptr contexts_
 List of the request's result's contexts.
 
CORBA::Context_ptr ctx_
 Context associated with this request.
 
std::atomic< uint32_t > refcount_
 Reference counting.
 
TAO_SYNCH_MUTEX lock_
 Protect the response_received_.
 
bool lazy_evaluation_
 If not zero then the NVList is not evaluated by default.
 
CORBA::Boolean response_received_
 Set to true upon completion of invoke() or handle_response().
 
int byte_order_
 Can be reset by a gateway when passing along a request.
 
ACE_CString raw_user_exception_
 
void send_deferred ()
 Target object.
 
void get_response ()
 Target object.
 
CORBA::Boolean poll_response ()
 Target object.
 
void handle_response (TAO_InputCDR &incoming, GIOP::ReplyStatusType reply_status)
 Callback method for deferred synchronous requests.
 
void sendc (CORBA::Object_ptr handler)
 
CORBA::ULong _incr_refcount ()
 Target object.
 
CORBA::ULong _decr_refcount ()
 Target object.
 
void _tao_lazy_evaluation (bool lazy_evaluation)
 Set the lazy evaluation flag.
 
int _tao_byte_order () const
 Get the byte order member.
 
void _tao_byte_order (int byte_order)
 Set the byte order member.
 
void raw_user_exception (TAO_InputCDR &cdr)
 
ACE_CStringraw_user_exception ()
 Accessor for the input stream containing the exception.
 
CORBA::Boolean response_received ()
 
static void _tao_reply_stub (TAO_InputCDR &_tao_reply_cdr, Messaging::ReplyHandler_ptr _tao_reply_handler, CORBA::ULong reply_status)
 Target object.
 
static CORBA::Request_duplicate (CORBA::Request *)
 Pseudo object methods.
 
static CORBA::Request_nil ()
 Target object.
 
 Request (CORBA::Object_ptr obj, CORBA::ORB_ptr orb, const CORBA::Char *op, CORBA::NVList_ptr args, CORBA::NamedValue_ptr result, CORBA::Flags flags, CORBA::ExceptionList_ptr exceptions)
 Target object.
 
 Request (CORBA::Object_ptr obj, CORBA::ORB_ptr orb, const CORBA::Char *op)
 Target object.
 
 ~Request ()
 Target object.
 

Detailed Description

CORBA::Request.

Provides a way to create requests and populate it with parameters for use in the Dynamic Invocation Interface.

Member Typedef Documentation

◆ _out_type

Target object.

◆ _ptr_type

Target object.

◆ _var_type

Target object.

Constructor & Destructor Documentation

◆ Request() [1/2]

CORBA::Request::Request ( CORBA::Object_ptr obj,
CORBA::ORB_ptr orb,
const CORBA::Char * op,
CORBA::NVList_ptr args,
CORBA::NamedValue_ptr result,
CORBA::Flags flags,
CORBA::ExceptionList_ptr exceptions )
private

Target object.

◆ Request() [2/2]

CORBA::Request::Request ( CORBA::Object_ptr obj,
CORBA::ORB_ptr orb,
const CORBA::Char * op )
private

Target object.

◆ ~Request()

CORBA::Request::~Request ( )
private

Target object.

Member Function Documentation

◆ _decr_refcount()

CORBA::ULong CORBA::Request::_decr_refcount ( )

Target object.

◆ _duplicate()

CORBA::Request_ptr CORBA::Request::_duplicate ( CORBA::Request * )
static

Pseudo object methods.

◆ _incr_refcount()

CORBA::ULong CORBA::Request::_incr_refcount ( )

Target object.

◆ _nil()

CORBA::Request_ptr CORBA::Request::_nil ( )
static

Target object.

◆ _tao_byte_order() [1/2]

int CORBA::Request::_tao_byte_order ( ) const

Get the byte order member.

◆ _tao_byte_order() [2/2]

void CORBA::Request::_tao_byte_order ( int byte_order)

Set the byte order member.

◆ _tao_lazy_evaluation()

void CORBA::Request::_tao_lazy_evaluation ( bool lazy_evaluation)

Set the lazy evaluation flag.

◆ _tao_reply_stub()

void CORBA::Request::_tao_reply_stub ( TAO_InputCDR & _tao_reply_cdr,
Messaging::ReplyHandler_ptr _tao_reply_handler,
CORBA::ULong reply_status )
static

Target object.

◆ add_in_arg() [1/2]

CORBA::Any & CORBA::Request::add_in_arg ( )

Initialize the return type.

◆ add_in_arg() [2/2]

CORBA::Any & CORBA::Request::add_in_arg ( const char * name)

Initialize the return type.

◆ add_inout_arg() [1/2]

CORBA::Any & CORBA::Request::add_inout_arg ( )

Initialize the return type.

◆ add_inout_arg() [2/2]

CORBA::Any & CORBA::Request::add_inout_arg ( const char * name)

Initialize the return type.

◆ add_out_arg() [1/2]

CORBA::Any & CORBA::Request::add_out_arg ( )

Initialize the return type.

◆ add_out_arg() [2/2]

CORBA::Any & CORBA::Request::add_out_arg ( const char * name)

Initialize the return type.

◆ arguments()

CORBA::NVList_ptr CORBA::Request::arguments ( )

Return the arguments for the request.

◆ contexts()

CORBA::ContextList_ptr CORBA::Request::contexts ( )

Return a list of the request's result's contexts. Since TAO does not implement Contexts, this will always be 0.

◆ ctx() [1/2]

CORBA::Context_ptr CORBA::Request::ctx ( ) const

Accessor for the Context member.

◆ ctx() [2/2]

void CORBA::Request::ctx ( CORBA::Context_ptr ctx)

Mutator for the Context member.

◆ exceptions()

CORBA::ExceptionList_ptr CORBA::Request::exceptions ( )

Return the exceptions resulting from this request.

◆ get_response()

void CORBA::Request::get_response ( )

Target object.

◆ handle_response()

void CORBA::Request::handle_response ( TAO_InputCDR & incoming,
GIOP::ReplyStatusType reply_status )

Callback method for deferred synchronous requests.

◆ invoke()

void CORBA::Request::invoke ( )

Perform method resolution and invoke an appropriate method.

If the method returns successfully, its result is placed in the result argument specified on create_request. The behavior is undefined if this Request has already been used with a previous call to invoke, send, or send_multiple_requests.

Note
A default argument is set, but please note that this not recommended as the user may not be able to propagate the exceptions.

◆ operation()

const CORBA::Char * CORBA::Request::operation ( ) const

Return the operation name for the request.

◆ poll_response()

CORBA::Boolean CORBA::Request::poll_response ( )

Target object.

◆ raw_user_exception() [1/2]

ACE_CString & CORBA::Request::raw_user_exception ( )

Accessor for the input stream containing the exception.

◆ raw_user_exception() [2/2]

void CORBA::Request::raw_user_exception ( TAO_InputCDR & cdr)

Hold on to a user exception in case we are part of a TAO gateway.

◆ response_received()

CORBA::Boolean CORBA::Request::response_received ( )

Proprietary method to check whether a response has been received.

◆ result()

CORBA::NamedValue_ptr CORBA::Request::result ( )

Return the result for the request.

◆ return_value()

CORBA::Any & CORBA::Request::return_value ( )

Returns reference to Any for extraction using >>=.

◆ send_deferred()

void CORBA::Request::send_deferred ( )

Target object.

◆ send_oneway()

void CORBA::Request::send_oneway ( )

Send a oneway request.

Note
A default argument is set, but please note that this not recommended as the user may not be able to propagate the exceptions.

◆ sendc()

void CORBA::Request::sendc ( CORBA::Object_ptr handler)

The 'asynchronous' send method. The object is a DSI based callback handler. This handler must implement Messaging::ReplyHandler

◆ set_return_type()

void CORBA::Request::set_return_type ( CORBA::TypeCode_ptr tc)

Initialize the return type.

◆ target()

CORBA::Object_ptr CORBA::Request::target ( ) const

Return the target of this request.

Friends And Related Symbol Documentation

◆ ::TAO_Dynamic_Adapter_Impl

friend class ::TAO_Dynamic_Adapter_Impl
friend

Target object.

Member Data Documentation

◆ args_

CORBA::NVList_ptr CORBA::Request::args_
private

Parameter list.

◆ byte_order_

int CORBA::Request::byte_order_
private

Can be reset by a gateway when passing along a request.

◆ contexts_

CORBA::ContextList_ptr CORBA::Request::contexts_
private

List of the request's result's contexts.

◆ ctx_

CORBA::Context_ptr CORBA::Request::ctx_
private

Context associated with this request.

◆ exceptions_

CORBA::ExceptionList_var CORBA::Request::exceptions_
private

List of exceptions raised by the operation.

Deprecated
Holds exceptions.

◆ flags_

CORBA::Flags CORBA::Request::flags_
private

Invocation flags.

◆ lazy_evaluation_

bool CORBA::Request::lazy_evaluation_
private

If not zero then the NVList is not evaluated by default.

◆ lock_

TAO_SYNCH_MUTEX CORBA::Request::lock_
private

Protect the response_received_.

◆ opname_

const char* CORBA::Request::opname_
private

Operation name.

◆ orb_

CORBA::ORB_var CORBA::Request::orb_
private

Pointer to our ORB.

◆ raw_user_exception_

ACE_CString CORBA::Request::raw_user_exception_
private

Stores user exception as a CDR stream when this request is used in a TAO gateway.

◆ refcount_

std::atomic<uint32_t> CORBA::Request::refcount_
private

Reference counting.

◆ response_received_

CORBA::Boolean CORBA::Request::response_received_
private

Set to true upon completion of invoke() or handle_response().

◆ result_

CORBA::NamedValue_ptr CORBA::Request::result_
private

Result of the operation.

◆ target_

CORBA::Object_ptr CORBA::Request::target_
private

Target object.


The documentation for this class was generated from the following files: