summaryrefslogtreecommitdiff
path: root/TAO/tao/Valuetype/Valuetype_Adapter_Factory_Impl.h
blob: 0b8ab48fe3614ef6deb2664810d1647baa24d194 (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
// -*- C++ -*-

//=============================================================================
/**
 *  @file    Valuetype_Adapter_Factory_Impl.h
 *
 *  @author  Kees van Marle <kvmarle@remedy.nl>
 */
//=============================================================================


#ifndef TAO_VALUETYPE_ADAPTER_FACTORY_IMPL_H
#define TAO_VALUETYPE_ADAPTER_FACTORY_IMPL_H

#include /**/ "ace/pre.h"

#include "tao/Valuetype/valuetype_export.h"

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

#include "tao/Valuetype_Adapter_Factory.h"
#include "ace/Service_Config.h"

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

class TAO_Valuetype_Adapter;

/**
 * @class TAO_Valuetype_Adapter_Factory_Impl
 *
 * @brief TAO_Valuetype_Adapter_Factory_Impl.
 *
 * Class that creates instances of TAO_Valuetype_Adapter (one per ORB).
 * This is the derived class that contains the actual implementations.
 */
class TAO_Valuetype_Export TAO_Valuetype_Adapter_Factory_Impl
  : public TAO_Valuetype_Adapter_Factory
{
public:
  virtual ~TAO_Valuetype_Adapter_Factory_Impl ();

  virtual TAO_Valuetype_Adapter * create ();

  // Used to force the initialization of the ORB code.
  static int Initializer ();
};

static const int TAO_Requires_ValueType_Initializer =
  TAO_Valuetype_Adapter_Factory_Impl::Initializer ();

ACE_STATIC_SVC_DECLARE (TAO_Valuetype_Adapter_Factory_Impl)
ACE_FACTORY_DECLARE (TAO_Valuetype, TAO_Valuetype_Adapter_Factory_Impl)

TAO_END_VERSIONED_NAMESPACE_DECL

#define TAO_VALUETYPE_SAFE_INCLUDE
// #include "tao/ValueType/ValueTypeC.h"
#undef TAO_VALUETYPE_SAFE_INCLUDE

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

#endif /* TAO_VALUETYPE_ADAPTER_FACTORY_IMPL_H */