diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2002-07-30 11:53:19 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2002-07-30 11:53:19 +0000 |
commit | da8c347a643e9ebfd0c40a284722fa3f5f422efb (patch) | |
tree | deed600fb83384a4d06579891f9f7796c6d314ee /ace/Dynamic_Service.cpp | |
parent | 8b0e42ce02a2110033e793521b0291178e24e0bb (diff) | |
download | ATCD-da8c347a643e9ebfd0c40a284722fa3f5f422efb.tar.gz |
ChangeLogTag:Tue Jul 30 06:50:26 2002 Douglas C. Schmidt <schmidt@macarena.cs.wustl.edu>
Diffstat (limited to 'ace/Dynamic_Service.cpp')
-rw-r--r-- | ace/Dynamic_Service.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ace/Dynamic_Service.cpp b/ace/Dynamic_Service.cpp index ee40d45f112..d475bd5a17b 100644 --- a/ace/Dynamic_Service.cpp +++ b/ace/Dynamic_Service.cpp @@ -10,10 +10,20 @@ # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ +#include "ace/Service_Object.h" + #if !defined (__ACE_INLINE__) #include "ace/Dynamic_Service.i" #endif /* __ACE_INLINE__ */ +template <class TYPE> TYPE * +ACE_Dynamic_Service<TYPE>::instance (const ACE_TCHAR *name) +{ + ACE_Service_Object *svc_obj = + ACE_static_cast (ACE_Service_Object *, ACE_Dynamic_Service_Base::instance (name)); + return ACE_dynamic_cast (TYPE *, svc_obj); +} + ACE_RCSID(ace, Dynamic_Service, "$Id$") #endif /* ACE_DYNAMIC_SERVICE_C */ |