00001 // -*- C++ -*- 00002 // 00003 // $Id: Invocation_Base.inl 82354 2008-07-22 11:34:18Z johnnyw $ 00004 00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 namespace TAO 00008 { 00009 ACE_INLINE TAO_Stub * 00010 Invocation_Base::stub (void) const 00011 { 00012 return this->stub_; 00013 } 00014 00015 ACE_INLINE void 00016 Invocation_Base::forwarded_reference (CORBA::Object_ptr o) 00017 { 00018 this->forwarded_to_ = CORBA::Object::_duplicate (o); 00019 this->reply_status_ = GIOP::LOCATION_FORWARD; 00020 } 00021 00022 ACE_INLINE CORBA::Object_ptr 00023 Invocation_Base::forwarded_reference (void) 00024 { 00025 return CORBA::Object::_duplicate (this->forwarded_to_.in ()); 00026 } 00027 00028 ACE_INLINE CORBA::Object_ptr 00029 Invocation_Base::steal_forwarded_reference (void) 00030 { 00031 this->reply_status_ = GIOP::NO_EXCEPTION; 00032 return this->forwarded_to_._retn (); 00033 } 00034 00035 ACE_INLINE CORBA::Boolean 00036 Invocation_Base::response_expected (void) const 00037 { 00038 return this->response_expected_; 00039 } 00040 00041 ACE_INLINE GIOP::ReplyStatusType 00042 Invocation_Base::reply_status (void) const 00043 { 00044 return this->reply_status_; 00045 } 00046 00047 ACE_INLINE void 00048 Invocation_Base::reply_status (GIOP::ReplyStatusType s) 00049 { 00050 this->reply_status_ = s; 00051 } 00052 00053 ACE_INLINE CORBA::Object_ptr 00054 Invocation_Base::target (void) const 00055 { 00056 return this->otarget_; 00057 } 00058 00059 ACE_INLINE CORBA::Object_ptr 00060 Invocation_Base::effective_target (void) const 00061 { 00062 return this->target_; 00063 } 00064 00065 ACE_INLINE TAO_Operation_Details & 00066 Invocation_Base::operation_details (void) 00067 { 00068 return this->details_; 00069 } 00070 00071 #if TAO_HAS_INTERCEPTORS == 1 00072 ACE_INLINE size_t & 00073 Invocation_Base::stack_size (void) 00074 { 00075 return this->stack_size_; 00076 } 00077 00078 ACE_INLINE CORBA::Exception * 00079 Invocation_Base::caught_exception (void) 00080 { 00081 return this->caught_exception_; 00082 } 00083 00084 ACE_INLINE TAO::Invocation_Status 00085 Invocation_Base::invoke_status (void) const 00086 { 00087 return this->invoke_status_; 00088 } 00089 00090 ACE_INLINE void 00091 Invocation_Base::invoke_status (Invocation_Status s) 00092 { 00093 this->invoke_status_ = s; 00094 } 00095 00096 ACE_INLINE bool 00097 Invocation_Base::is_remote_request (void) const 00098 { 00099 return this->is_remote_request_; 00100 } 00101 #endif /* TAO_HAS_INTERCEPTORS */ 00102 } 00103 00104 TAO_END_VERSIONED_NAMESPACE_DECL