Bind_Dispatcher_Guard.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file     Bind_Dispatcher_Guard.h
00006  *
00007  *  Bind_Dispatcher_Guard.h,v 1.8 2005/11/02 07:13:02 ossama Exp
00008  *
00009  *  @author  Carlos O'Ryan <coryan@uci.edu>
00010  *  @author  Chad Elliott <elliott_c@ociweb.com>
00011  */
00012 //=============================================================================
00013 
00014 #ifndef TAO_BIND_DISPATCHER_GUARD_H
00015 #define TAO_BIND_DISPATCHER_GUARD_H
00016 
00017 #include /**/ "ace/pre.h"
00018 
00019 #include "tao/Basic_Types.h"
00020 #include "tao/TAO_Export.h"
00021 
00022 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00023 
00024 class TAO_Reply_Dispatcher;
00025 class TAO_Transport_Mux_Strategy;
00026 
00027 class TAO_Export TAO_Bind_Dispatcher_Guard
00028 {
00029 public:
00030   TAO_Bind_Dispatcher_Guard (CORBA::ULong request_id,
00031                              TAO_Reply_Dispatcher* rd,
00032                              TAO_Transport_Mux_Strategy* tms);
00033 
00034   ~TAO_Bind_Dispatcher_Guard (void);
00035 
00036   /// Returns 0 if succesful and non-zero otherwise.
00037   int unbind_dispatcher (void);
00038 
00039   /// State information
00040   enum
00041     {
00042       /// Unbind the dispatcher
00043       UNBIND = 0,
00044       /// Do not unbind dispatcher
00045       NO_UNBIND
00046     };
00047 
00048   /// Get status
00049   int status (void) const;
00050 
00051   /// Set status
00052   void status (int status);
00053 
00054 private:
00055   int                         status_;
00056   CORBA::ULong                request_id_;
00057   TAO_Reply_Dispatcher*       rd_;
00058   TAO_Transport_Mux_Strategy* tms_;
00059 };
00060 
00061 TAO_END_VERSIONED_NAMESPACE_DECL
00062 
00063 #if defined (__ACE_INLINE__)
00064 # include "tao/Bind_Dispatcher_Guard.i"
00065 #endif /* __ACE_INLINE__ */
00066 
00067 #include /**/ "ace/post.h"
00068 #endif

Generated on Thu Nov 9 11:54:08 2006 for TAO by doxygen 1.3.6