Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / PI / DLL_Resident_ORB_Initializer.cpp
blobe71785cb0d3dadb2ebe718119691b1017285cb1d
1 // -*- C++ -*-
2 //=============================================================================
3 /**
4 * @file DLL_Resident_ORB_Initializer.cpp
6 * @author Dale Wilson <wilsond@ociweb.com>
7 */
8 //=============================================================================
10 #include "tao/PI/DLL_Resident_ORB_Initializer.h"
12 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
14 PortableInterceptor::DLL_Resident_ORB_Initializer::DLL_Resident_ORB_Initializer (
15 PortableInterceptor::ORBInitializer_ptr initializer,
16 const ACE_TCHAR * dll_name)
17 : initializer_(PortableInterceptor::ORBInitializer::_duplicate(initializer))
18 , dll_(dll_name)
20 if (TAO_debug_level > 8)
22 TAOLIB_DEBUG ((LM_DEBUG,
23 ACE_TEXT ("TAO (%P|%t) - Construct DLL_Resident_ORB_Initializer for @%@\n"),
24 initializer_.operator->()
25 ));
29 PortableInterceptor::DLL_Resident_ORB_Initializer::~DLL_Resident_ORB_Initializer ()
31 if (TAO_debug_level > 8)
33 TAOLIB_DEBUG ((LM_DEBUG,
34 ACE_TEXT ("TAO (%P|%t) - Destruct DLL_Resident_ORB_Initializer for @%@\n"),
35 initializer_.operator->()
36 ));
38 // let the var release the object first
39 initializer_ = PortableInterceptor::ORBInitializer::_nil();
40 // then the ACE_DLL can release the dll on the way out.
44 void
45 PortableInterceptor::DLL_Resident_ORB_Initializer::pre_init (
46 ::PortableInterceptor::ORBInitInfo_ptr info)
48 initializer_->pre_init (info);
51 void
52 PortableInterceptor::DLL_Resident_ORB_Initializer::post_init (
53 ::PortableInterceptor::ORBInitInfo_ptr info)
55 initializer_->post_init (info);
59 TAO_END_VERSIONED_NAMESPACE_DECL