Provides a general interface to retrieve arbitrary objects from the ACE service repository. More...
#include <Dynamic_Service.h>
Static Public Member Functions | |
static TYPE * | instance (const ACE_TCHAR *name) |
Return instance using name to search the Service_Repository. | |
static TYPE * | instance (const ACE_TCHAR *name, bool no_global) |
static TYPE * | instance (const ACE_Service_Gestalt *repo, const ACE_TCHAR *name) |
static TYPE * | instance (const ACE_Service_Gestalt *repo, const ACE_TCHAR *name, bool no_global) |
Private Member Functions | |
ACE_Dynamic_Service () | |
ACE_Dynamic_Service (const ACE_Dynamic_Service &) | |
ACE_Dynamic_Service & | operator= (const ACE_Dynamic_Service &) |
Provides a general interface to retrieve arbitrary objects from the ACE service repository.
Uses "name" for lookup in the ACE service repository. Obtains the object and returns it as the appropriate type.
Definition at line 42 of file Dynamic_Service.h.
ACE_Dynamic_Service< TYPE >::ACE_Dynamic_Service | ( | ) | [private] |
ACE_Dynamic_Service< TYPE >::ACE_Dynamic_Service | ( | const ACE_Dynamic_Service< TYPE > & | ) | [private] |
TYPE * ACE_Dynamic_Service< TYPE >::instance | ( | const ACE_TCHAR * | name | ) | [static] |
Return instance using name to search the Service_Repository.
Definition at line 22 of file Dynamic_Service.cpp.
{ ACE_Service_Object * svc_obj = static_cast<ACE_Service_Object *> (ACE_Dynamic_Service_Base::instance (name,false)); return dynamic_cast<TYPE *> (svc_obj); }
TYPE * ACE_Dynamic_Service< TYPE >::instance | ( | const ACE_TCHAR * | name, | |
bool | no_global | |||
) | [static] |
Perform the default repo search, but optionally skip searching the global repo.
Reimplemented from ACE_Dynamic_Service_Base.
Definition at line 31 of file Dynamic_Service.cpp.
{ ACE_Service_Object * svc_obj = static_cast<ACE_Service_Object *> (ACE_Dynamic_Service_Base::instance (name, no_global)); return dynamic_cast<TYPE *> (svc_obj); }
TYPE * ACE_Dynamic_Service< TYPE >::instance | ( | const ACE_Service_Gestalt * | repo, | |
const ACE_TCHAR * | name, | |||
bool | no_global | |||
) | [static] |
Reimplemented from ACE_Dynamic_Service_Base.
Definition at line 51 of file Dynamic_Service.cpp.
{ ACE_Service_Object * svc_obj = static_cast<ACE_Service_Object *> (ACE_Dynamic_Service_Base::instance (conf, name, no_global)); return dynamic_cast<TYPE *> (svc_obj); }
TYPE * ACE_Dynamic_Service< TYPE >::instance | ( | const ACE_Service_Gestalt * | repo, | |
const ACE_TCHAR * | name | |||
) | [static] |
Definition at line 41 of file Dynamic_Service.cpp.
{ ACE_Service_Object * svc_obj = static_cast<ACE_Service_Object *> (ACE_Dynamic_Service_Base::instance (conf, name, false)); return dynamic_cast<TYPE *> (svc_obj); }
ACE_Dynamic_Service& ACE_Dynamic_Service< TYPE >::operator= | ( | const ACE_Dynamic_Service< TYPE > & | ) | [private] |