// This may look like C, but it's really -*- C++ -*- //============================================================================= /** * @file Bind_Dispatcher_Guard.h * * $Id$ * * @author Carlos O'Ryan * @author Chad Elliott */ //============================================================================= #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" 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 }; /// Set and get status int status (void) const; void status (int status); private: int status_; CORBA::ULong request_id_; TAO_Reply_Dispatcher* rd_; TAO_Transport_Mux_Strategy* tms_; }; #if defined (__ACE_INLINE__) # include "tao/Bind_Dispatcher_Guard.i" #endif /* __ACE_INLINE__ */ #include /**/ "ace/post.h" #endif