blob: d2d1df23f1e0c6f79f79b1d6fb0124c09ba99016 (
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
|
// -*- C++ -*-
//=============================================================================
/**
* @file ORT_Adapter_Factory.h
*
* @author Johnny Willemsen <jwillemsen@remedy.nl>
*/
//=============================================================================
#ifndef TAO_ORT_ADAPTER_FACTORY_H
#define TAO_ORT_ADAPTER_FACTORY_H
#include /**/ "ace/pre.h"
#include "tao/PortableServer/portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/Versioned_Namespace.h"
#include "ace/Service_Object.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
class ORT_Adapter;
}
namespace TAO
{
/**
* @class ORT_Adapter_Factory
*
* @brief ORT_Adapter_Factory
*
* Class that creates one instance of TAO::ORT_Adapter per
* POA on the POA's first usage of its objectreferencetemplate_adapter.
* This is a base class for the actual implementation in the
* TAO_ObjectReferenceTemplate library.
*/
class TAO_PortableServer_Export ORT_Adapter_Factory
: public ACE_Service_Object
{
public:
/// Destructor.
/**
* @note Even though this class only defines an interface, a
* destructor is necessary to avoid dynamic_cast<> failures
* when using g++ 4.0's -fvisibility-inlines-hidden command
* line option. Apparently the compiler generated
* destructor is inlined.
*/
virtual ~ORT_Adapter_Factory ();
/// Create a new adapter, in case not possible to allocate, returns 0
virtual TAO::ORT_Adapter * create () = 0;
/// Destroy the passed adapter
virtual void destroy (TAO::ORT_Adapter * adapter) = 0;
};
}
TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /* TAO_ORT_ADAPTER_FACTORY_H */
|