Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Bind_Dispatcher_Guard.h

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

Generated on Mon Jun 16 13:48:01 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002