TAO::Reply_Guard Class Reference

A guard class used for storing and forwarding the reply status to the portable interceptors. More...

#include <Synch_Invocation.h>

List of all members.

Public Member Functions

 Reply_Guard (Invocation_Base *s, Invocation_Status is)
 ~Reply_Guard (void)
void set_status (Invocation_Status s)
 Mutator to set the invocation status.

Private Member Functions

 Reply_Guard (Reply_Guard const &)
Reply_Guardoperator= (Reply_Guard const &)

Private Attributes

Invocation_Base *const invocation_
Invocation_Status status_


Detailed Description

A guard class used for storing and forwarding the reply status to the portable interceptors.

Definition at line 166 of file Synch_Invocation.h.


Constructor & Destructor Documentation

ACE_INLINE TAO::Reply_Guard::Reply_Guard ( Invocation_Base s,
Invocation_Status  is 
)

Definition at line 10 of file Synch_Invocation.inl.

00012     : invocation_ (b)
00013     , status_ (s)
00014   {
00015   }

ACE_INLINE TAO::Reply_Guard::~Reply_Guard ( void   ) 

The destructor calls Invocation_Base::invoke_status with the right invoke status, which is useful for PI's.

Definition at line 18 of file Synch_Invocation.inl.

References invocation_, and TAO::Invocation_Base::invoke_status().

00019   {
00020 #if TAO_HAS_INTERCEPTORS == 1
00021     this->invocation_->invoke_status (this->status_);
00022 #endif  /* TAO_HAS_INTERCEPTORS == 1 */
00023   }

TAO::Reply_Guard::Reply_Guard ( Reply_Guard const &   )  [private]


Member Function Documentation

Reply_Guard& TAO::Reply_Guard::operator= ( Reply_Guard const &   )  [private]

ACE_INLINE void TAO::Reply_Guard::set_status ( Invocation_Status  s  ) 

Mutator to set the invocation status.

Definition at line 26 of file Synch_Invocation.inl.

References status_.

Referenced by TAO::Synch_Twoway_Invocation::check_reply_status(), TAO::Synch_Twoway_Invocation::handle_system_exception(), TAO::Synch_Twoway_Invocation::handle_user_exception(), and TAO::Synch_Twoway_Invocation::location_forward().

00027   {
00028     this->status_ = s;
00029   }


Member Data Documentation

Invocation_Base* const TAO::Reply_Guard::invocation_ [private]

Definition at line 186 of file Synch_Invocation.h.

Referenced by ~Reply_Guard().

Invocation_Status TAO::Reply_Guard::status_ [private]

Definition at line 187 of file Synch_Invocation.h.

Referenced by set_status().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:39:18 2010 for TAO by  doxygen 1.4.7