blob: 0139e8372f57e81260fe3192f663096eaadeccb8 (
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
75
76
77
78
79
80
81
82
83
84
|
// -*- C++ -*-
//=============================================================================
/**
* @file ImR_Client.h
*
* @author Johnny Willemsen <jwillemsen@remedy.nl>
*/
//=============================================================================
#ifndef TAO_IMR_CLIENT_ADAPTER_IMPL_H
#define TAO_IMR_CLIENT_ADAPTER_IMPL_H
#include /**/ "ace/pre.h"
#include "tao/ImR_Client/imr_client_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/PortableServer/ImR_Client_Adapter.h"
#include "ace/Service_Config.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class ServerObject_i;
namespace TAO
{
namespace ImR_Client
{
/**
* @class IFR_Client_Adapter_Impl
*
* @brief IFR_Client_Adapter_Impl.
*
* Class that adapts various functions in the PortableServer library
* which use the Implementation Repository. This is the derived class
* that contains the actual implementations.
*/
class TAO_IMR_Client_Export ImR_Client_Adapter_Impl
: public ::TAO::Portable_Server::ImR_Client_Adapter
{
public:
/// Constructor.
ImR_Client_Adapter_Impl ();
/// Used to force the initialization of the PortableServer code.
static int Initializer ();
/// ImplRepo helper method, notify the ImplRepo on startup
virtual void imr_notify_startup (TAO_Root_POA* poa);
/// ImplRepo helper method, notify the ImplRepo on shutdown
virtual void imr_notify_shutdown (TAO_Root_POA* poa);
/// ImplRepo helper method, create an IMR-ified object for a
/// key with a given type
virtual CORBA::Object_ptr imr_key_to_object(TAO_Root_POA* poa,
const TAO::ObjectKey &key,
const char *type_id) const;
private:
/// Implementation Repository Server Object
ServerObject_i *server_object_;
};
static int
TAO_Requires_ImR_Client_Initializer =
TAO::ImR_Client::ImR_Client_Adapter_Impl::Initializer ();
}
}
ACE_STATIC_SVC_DECLARE (ImR_Client_Adapter_Impl)
ACE_FACTORY_DECLARE (TAO_IMR_Client, ImR_Client_Adapter_Impl)
TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /* TAO_IMR_CLIENT_ADAPTER_IMPL_H */
|