Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Dynamic_Service Class Template Reference

Provides a general interface to retrieve arbitrary objects from the ACE service repository. More...

#include <Dynamic_Service.h>

Inheritance diagram for ACE_Dynamic_Service:

Inheritance graph
[legend]
Collaboration diagram for ACE_Dynamic_Service:

Collaboration graph
[legend]
List of all members.

Static Public Methods

TYPE * instance (const ACE_TCHAR *name)
 Return instance using <name> to search the Service_Repository. More...


Detailed Description

template<class TYPE>
class ACE_Dynamic_Service< TYPE >

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 39 of file Dynamic_Service.h.


Member Function Documentation

template<class TYPE>
TYPE * ACE_Dynamic_Service< TYPE >::instance const ACE_TCHAR   name [static]
 

Return instance using <name> to search the Service_Repository.

Reimplemented from ACE_Dynamic_Service_Base.

Definition at line 20 of file Dynamic_Service.cpp.

References ACE_TCHAR, and ACE_Dynamic_Service_Base::instance.

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 }


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:47:38 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002