diff options
Diffstat (limited to 'TAO/tao/Bind_Dispatcher_Guard.h')
-rw-r--r-- | TAO/tao/Bind_Dispatcher_Guard.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/TAO/tao/Bind_Dispatcher_Guard.h b/TAO/tao/Bind_Dispatcher_Guard.h new file mode 100644 index 00000000000..ca4d11eb4e5 --- /dev/null +++ b/TAO/tao/Bind_Dispatcher_Guard.h @@ -0,0 +1,68 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file Bind_Dispatcher_Guard.h + * + * $Id$ + * + * @author Carlos O'Ryan <coryan@uci.edu> + * @author Chad Elliott <elliott_c@ociweb.com> + */ +//============================================================================= + +#ifndef TAO_BIND_DISPATCHER_GUARD_H +#define TAO_BIND_DISPATCHER_GUARD_H + +#include /**/ "ace/pre.h" + +#include "tao/Basic_Types.h" +#include /**/ "tao/TAO_Export.h" + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +class TAO_Reply_Dispatcher; +class TAO_Transport_Mux_Strategy; + +class TAO_Export TAO_Bind_Dispatcher_Guard +{ +public: + TAO_Bind_Dispatcher_Guard (CORBA::ULong request_id, + TAO_Reply_Dispatcher* rd, + TAO_Transport_Mux_Strategy* tms); + + ~TAO_Bind_Dispatcher_Guard (void); + + /// Returns 0 if succesful and non-zero otherwise. + int unbind_dispatcher (void); + + /// State information + enum + { + /// Unbind the dispatcher + UNBIND = 0, + /// Do not unbind dispatcher + NO_UNBIND + }; + + /// Get status + int status (void) const; + + /// Set status + void status (int status); + +private: + int status_; + CORBA::ULong request_id_; + TAO_Reply_Dispatcher* rd_; + TAO_Transport_Mux_Strategy* tms_; +}; + +TAO_END_VERSIONED_NAMESPACE_DECL + +#if defined (__ACE_INLINE__) +# include "tao/Bind_Dispatcher_Guard.inl" +#endif /* __ACE_INLINE__ */ + +#include /**/ "ace/post.h" +#endif |