blob: 6003bb948ae29abc4687337a0b53e00ab407fe38 (
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
|
// $Id$
#include "IORInterceptor_Adapter_Impl.h"
#include "tao/ORB_Core.h"
ACE_RCSID (IORInterceptor,
IORInterceptor_Adapter_Impl,
"$Id$")
TAO_IORInterceptor_Adapter_Impl::~TAO_IORInterceptor_Adapter_Impl (void)
{
}
void
TAO_IORInterceptor_Adapter_Impl::tao_iorinterceptor_release (
PortableInterceptor::IORInterceptor_ptr p
)
{
CORBA::release (p);
}
PortableInterceptor::Interceptor_ptr
TAO_IORInterceptor_Adapter_Impl::tao_iorinterceptor (
TAO_IORInterceptor_List::TYPE & container,
size_t index
)
{
return container[index];
}
void
TAO_IORInterceptor_Adapter_Impl::tao_add_iorinterceptor (
TAO_IORInterceptor_List * list,
TAO_IORInterceptor_List::TYPE & container,
PortableInterceptor::IORInterceptor_ptr interceptor
ACE_ENV_ARG_DECL
)
{
size_t index = list->add_interceptor_helper (interceptor
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
container[index] =
PortableInterceptor::IORInterceptor::_duplicate (interceptor);
}
void
TAO_IORInterceptor_Adapter_Impl::tao_iorinterceptor_destroy (
TAO_IORInterceptor_List::TYPE & container,
size_t ilen
ACE_ENV_ARG_DECL
)
{
container[ilen]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
}
// *********************************************************************
// Initialization and registration of dynamic service object.
int
TAO_IORInterceptor_Adapter_Impl::Initializer (void)
{
TAO_ORB_Core::iorinterceptor_adapter_name (
"Concrete_IORInterceptor_Adapter"
);
return
ACE_Service_Config::process_directive (
ace_svc_desc_TAO_IORInterceptor_Adapter_Impl
);
}
ACE_STATIC_SVC_DEFINE (
TAO_IORInterceptor_Adapter_Impl,
ACE_TEXT ("Concrete_IORInterceptor_Adapter"),
ACE_SVC_OBJ_T,
&ACE_SVC_NAME (TAO_IORInterceptor_Adapter_Impl),
ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
0
)
ACE_FACTORY_DEFINE (TAO_IORInterceptor, TAO_IORInterceptor_Adapter_Impl)
|