NCBI C++ ToolKit
Public Member Functions | List of all members
IServiceLocator Class Referenceabstract

Search Toolkit Book for IServiceLocator

IServiceLocator - an abstract mechanism for locating services. More...

#include <gui/framework/service.hpp>

+ Inheritance diagram for IServiceLocator:

Public Member Functions

virtual bool HasService (const string &name)=0
 returns true if the service exists within the scope of the locator More...
 
virtual CIRef< IServiceGetService (const string &name)=0
 retrieves the service More...
 
virtual ~IServiceLocator ()
 
template<class T >
CIRef< TGetServiceByType ()
 retrieves a typed reference to a service, the name of C++ type is used as the name of the service. More...
 

Detailed Description

IServiceLocator - an abstract mechanism for locating services.

IServiceLocator locates a service by itís name. In most cases the name of a service class or interface should be used as the name of the service.

Definition at line 70 of file service.hpp.


The documentation for this class was generated from the following file:
Modified on Wed Jul 17 13:19:18 2024 by modify_doxy.py rev. 669887