blob: ec1d0431afc457bc3b71e2998fe15d081fa99150 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* -*- C++ -*- */
// $Id$
template <class TYPE> ACE_INLINE 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);
}
#if defined (ACE_USES_WCHAR)
template <class TYPE> ACE_INLINE TYPE *
ACE_Dynamic_Service<TYPE>::instance (const ACE_ANTI_TCHAR *name)
{
return instance(ACE_TEXT_CHAR_TO_TCHAR(name));
}
#endif // ACE_USES_WCHAR
|