summaryrefslogtreecommitdiff
path: root/TAO/tao/Bind_Dispatcher_Guard.h
blob: 0d7ef92e10f6951d5d943b5d923972ccaf754324 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// This may look like C, but it's really -*- C++ -*-
// $Id$

// ===========================================================================
//
// = LIBRARY
//     TAO
//
// = AUTHOR
//     Carlos O'Ryan <coryan@uci.edu>,
//     Chad Elliott <elliott_c@ociweb.com>
//
// ===========================================================================

#ifndef TAO_BIND_DISPATCHER_GUARD_H
#define TAO_BIND_DISPATCHER_GUARD_H
#include "ace/pre.h"

#include "tao/corbafwd.h"

class TAO_Reply_Dispatcher;
class TAO_Transport_Mux_Strategy;

class 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);

  int status(void) const;

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