00001 // Dynamic_Service.cpp 00002 // $Id: Dynamic_Service.cpp,v 1.1.1.4 2003/02/21 18:36:32 chad Exp $ 00003 00004 #ifndef ACE_DYNAMIC_SERVICE_C 00005 #define ACE_DYNAMIC_SERVICE_C 00006 00007 #include "ace/Dynamic_Service.h" 00008 00009 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00010 # pragma once 00011 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00012 00013 #include "ace/Service_Object.h" 00014 00015 #if !defined (__ACE_INLINE__) 00016 #include "ace/Dynamic_Service.i" 00017 #endif /* __ACE_INLINE__ */ 00018 00019 template <class TYPE> TYPE * 00020 ACE_Dynamic_Service<TYPE>::instance (const ACE_TCHAR *name) 00021 { 00022 ACE_Service_Object *svc_obj = 00023 ACE_static_cast (ACE_Service_Object *, ACE_Dynamic_Service_Base::instance (name)); 00024 return ACE_dynamic_cast (TYPE *, svc_obj); 00025 } 00026 00027 ACE_RCSID(ace, Dynamic_Service, "$Id: Dynamic_Service.cpp,v 1.1.1.4 2003/02/21 18:36:32 chad Exp $") 00028 00029 #endif /* ACE_DYNAMIC_SERVICE_C */
1.2.14 written by Dimitri van Heesch,
© 1997-2002