blob: e0c38011bf17427fd063cd2e45201637b249f5ae (
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
|
/* -*- C++ -*- */
// =================================================================
/**
* @file PICurrent_Loader.cpp
*
* $Id$
*
* @author Johnny Willemsen <jwillemsen@remedy.nl>
*
*/
// =================================================================
#include "PICurrent_Loader.h"
#if TAO_HAS_INTERCEPTORS == 1
#include "PICurrent.h"
#include "tao/ORB.h"
#include "tao/ORB_Core.h"
#include "tao/debug.h"
ACE_RCSID (PI,
PICurrent_Loader,
"$Id$")
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
CORBA::Object_ptr
TAO_PICurrent_Loader::create_object (
CORBA::ORB_ptr orb,
int,
ACE_TCHAR *[]
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
CORBA::Object_ptr obj = CORBA::Object::_nil ();
ACE_NEW_RETURN (obj,
TAO::PICurrent (*orb->orb_core ()),
CORBA::Object::_nil ());
return obj;
}
TAO_END_VERSIONED_NAMESPACE_DECL
ACE_STATIC_SVC_DEFINE (TAO_PICurrent_Loader,
ACE_TEXT ("PICurrent_Loader"),
ACE_SVC_OBJ_T,
&ACE_SVC_NAME (TAO_PICurrent_Loader),
ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
0)
ACE_FACTORY_DEFINE (TAO_PI, TAO_PICurrent_Loader)
#endif /* TAO_HAS_INTERCEPTORS == 1 */
|