summaryrefslogtreecommitdiff
path: root/TAO/tao/IORInterceptor_Adapter.h
blob: fdffe3716d5852eb24603d1db379a313b1bb9772 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// This may look like C, but it's really -*- C++ -*-

//=============================================================================
/**
 *  @file    IORInterceptor_Adapter.h
 *
 *  $Id$
 *
 *  @author  Jeff Parsons <parsons@cs.wustl.edu>
 */
//=============================================================================


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

#include "tao/corbafwd.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "tao/Interceptor_List.h"
#include "ace/Service_Object.h"
#include "ace/CORBA_macros.h"

namespace PortableInterceptor
{
  class Interceptor;
  typedef Interceptor *Interceptor_ptr;
  class IORInterceptor;
  typedef IORInterceptor *IORInterceptor_ptr;
};

/**
 * @class TAO_IORInterceptor_Adapter
 *
 * @brief TAO_IORInterceptor_Adapter.
 *
 * Class that adapts various functions involving the PortableInterceptor
 * interfaces IORInfo and IORInterceptor. This is a base class for
 * the actual implementation in the TAO_IORInterceptor library.
 */
class TAO_Export TAO_IORInterceptor_Adapter : public ACE_Service_Object
{
public:
  virtual ~TAO_IORInterceptor_Adapter (void);

  virtual void tao_iorinterceptor_release (
      PortableInterceptor::IORInterceptor_ptr
    ) = 0;

  virtual PortableInterceptor::Interceptor_ptr tao_iorinterceptor (
      TAO_IORInterceptor_List::TYPE & container,
      size_t index
    ) = 0;

  virtual void tao_add_iorinterceptor (
      TAO_IORInterceptor_List * list,
      TAO_IORInterceptor_List::TYPE & container,
      PortableInterceptor::IORInterceptor_ptr interceptor
      ACE_ENV_ARG_DECL
    ) = 0;

  virtual void tao_iorinterceptor_destroy (
      TAO_IORInterceptor_List::TYPE & container,
      size_t ilen
      ACE_ENV_ARG_DECL
    ) = 0;
};

#include "ace/post.h"
#endif /* TAO_IORINTERCEPTOR_ADAPTER_H */