Initial Patch of Auction House bot rev. 135
[auctionmangos.git] / dep / ACE_wrappers / ace / Dynamic_Service_Dependency.cpp
blobdf7cd0f5d4837e7aef3a4432deaff45e40236ee8
1 #include "ace/ACE.h"
2 #include "ace/DLL_Manager.h"
3 #include "ace/Dynamic_Service_Dependency.h"
4 #include "ace/Service_Config.h"
5 #include "ace/Log_Msg.h"
7 ACE_RCSID (ace,
8 Dynamic_Service_Dependency,
9 "$Id: Dynamic_Service_Dependency.cpp 80826 2008-03-04 14:51:23Z wotte $")
12 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
15 ACE_Dynamic_Service_Dependency::ACE_Dynamic_Service_Dependency (const ACE_TCHAR *principal)
17 this->init (ACE_Service_Config::current (), principal);
20 ACE_Dynamic_Service_Dependency::ACE_Dynamic_Service_Dependency (const ACE_Service_Gestalt *cfg,
21 const ACE_TCHAR *principal)
23 this->init (cfg, principal);
27 ACE_Dynamic_Service_Dependency::~ACE_Dynamic_Service_Dependency (void)
29 if (ACE::debug ())
30 ACE_DEBUG ((LM_DEBUG,
31 ACE_TEXT ("(%P|%t) DSD, this=%@ - destroying\n"),
32 this));
35 void
36 ACE_Dynamic_Service_Dependency::init (const ACE_Service_Gestalt *cfg,
37 const ACE_TCHAR *principal)
39 const ACE_Service_Type* st =
40 ACE_Dynamic_Service_Base::find_i (cfg, principal,false);
41 if (ACE::debug ())
43 ACE_DEBUG ((LM_DEBUG,
44 ACE_TEXT ("(%P|%t) DSD, this=%@ - creating dependency on "), this));
45 st->dump ();
47 this->tracker_ = st->dll ();
51 ACE_END_VERSIONED_NAMESPACE_DECL