diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-04-18 01:12:18 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-04-18 01:12:18 +0000 |
commit | 92b7f5a7c55289f2bd55788306d955d88d0b084f (patch) | |
tree | 439102c79f852827bd65b99fef6771fad32e3c0d /ace/Dynamic_Service.cpp | |
parent | 26028bdb78086acf0fca68891786ff4db4770f7e (diff) | |
download | ATCD-TAO-1_1_1.tar.gz |
This commit was manufactured by cvs2svn to create tag 'TAO-1_1_1'.TAO-1_1_1
Diffstat (limited to 'ace/Dynamic_Service.cpp')
-rw-r--r-- | ace/Dynamic_Service.cpp | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/ace/Dynamic_Service.cpp b/ace/Dynamic_Service.cpp deleted file mode 100644 index e102ec2cab3..00000000000 --- a/ace/Dynamic_Service.cpp +++ /dev/null @@ -1,52 +0,0 @@ -// Dynamic_Service.cpp -// $Id$ - -#ifndef ACE_DYNAMIC_SERVICE_C -#define ACE_DYNAMIC_SERVICE_C - -#define ACE_BUILD_DLL -#include "ace/Service_Config.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#include "ace/Service_Repository.h" -#include "ace/Dynamic_Service.h" - -ACE_RCSID(ace, Dynamic_Service, "$Id$") - -template <class SERVICE> void -ACE_Dynamic_Service<SERVICE>::dump (void) const -{ - ACE_TRACE ("ACE_Dynamic_Service<SERVICE>::dump"); - - ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this)); - ACE_DEBUG ((LM_DEBUG, ASYS_TEXT ("\n"))); - ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP)); -} - -// Get the instance using <name>. - -template <class SERVICE> SERVICE * -ACE_Dynamic_Service<SERVICE>::instance (const char *name) -{ - ACE_TRACE ("ACE_Dynamic_Service::instance"); - const ACE_Service_Type *svc_rec; - - if (ACE_Service_Repository::instance ()->find (name, - &svc_rec) == -1) - return 0; - - const ACE_Service_Type_Impl *type = svc_rec->type (); - - if (type == 0) - return 0; - else - { - void *obj = type->object (); - return ACE_reinterpret_cast (SERVICE *, obj); - } -} - -#endif /* ACE_DYNAMIC_SERVICE_C */ |