fesa::ServiceLocator< GlobalDeviceType, DomainStoreType, DeviceType > Class Template Reference

#include <ServiceLocator.h>

Inheritance diagram for fesa::ServiceLocator< GlobalDeviceType, DomainStoreType, DeviceType >:
fesa::AbstractServiceLocator

List of all members.

Public Member Functions

 ServiceLocator (AbstractServiceLocatorImplementation *abstractImplementation)
virtual ~ServiceLocator ()
DeviceType * getDevice (const std::string &deviceName) const
 Retrieve a device based on its name.
const std::vector< DeviceType * > & getDeviceCollection ()
 Retrieve the complete collection of devices for a given FESA class.
GlobalDeviceType * getGlobalDevice () const
 Retrieve the global device of the current class.

Detailed Description

template<typename GlobalDeviceType, typename DomainStoreType, typename DeviceType>
class fesa::ServiceLocator< GlobalDeviceType, DomainStoreType, DeviceType >

Definition at line 21 of file ServiceLocator.h.


Constructor & Destructor Documentation

template<typename GlobalDeviceType , typename DomainStoreType , typename DeviceType >
fesa::ServiceLocator< GlobalDeviceType, DomainStoreType, DeviceType >::ServiceLocator ( AbstractServiceLocatorImplementation abstractImplementation  )  [inline]

Definition at line 67 of file ServiceLocator.h.

template<typename GlobalDeviceType , typename DomainStoreType , typename DeviceType >
fesa::ServiceLocator< GlobalDeviceType, DomainStoreType, DeviceType >::~ServiceLocator (  )  [inline, virtual]

Definition at line 73 of file ServiceLocator.h.


Member Function Documentation

template<typename GlobalDeviceType , typename DomainStoreType , typename DeviceType >
DeviceType * fesa::ServiceLocator< GlobalDeviceType, DomainStoreType, DeviceType >::getDevice ( const std::string &  deviceName  )  const [inline, virtual]

Retrieve a device based on its name.

Parameters:
deviceName the name of the searched device
Returns:
a pointer to the concrete FESA class device
Exceptions:
FesaException 

Reimplemented from fesa::AbstractServiceLocator.

Definition at line 38 of file ServiceLocator.h.

References fesa::AbstractServiceLocatorImplementation::getDevice(), and fesa::AbstractServiceLocator::pImplementation_.

template<typename GlobalDeviceType , typename DomainStoreType , typename DeviceType >
const std::vector< DeviceType * > & fesa::ServiceLocator< GlobalDeviceType, DomainStoreType, DeviceType >::getDeviceCollection (  )  [inline]

Retrieve the complete collection of devices for a given FESA class.

Returns:
a std::vector with the collection of the devices as a collection of pointers to the FESA class concrete type
Exceptions:
FesaException 

Definition at line 49 of file ServiceLocator.h.

References fesa::AbstractServiceLocatorImplementation::getDeviceCollection(), and fesa::AbstractServiceLocator::pImplementation_.

template<typename GlobalDeviceType , typename DomainStoreType , typename DeviceType >
GlobalDeviceType * fesa::ServiceLocator< GlobalDeviceType, DomainStoreType, DeviceType >::getGlobalDevice (  )  const [inline, virtual]

Retrieve the global device of the current class.

Returns:
the global device as a pointer to the FESA class concrete type
Exceptions:
FesaException 

Reimplemented from fesa::AbstractServiceLocator.

Definition at line 61 of file ServiceLocator.h.

References fesa::AbstractServiceLocatorImplementation::getGlobalDevice(), and fesa::AbstractServiceLocator::pImplementation_.


The documentation for this class was generated from the following file:

Generated on 18 Jan 2013 for Fesa by  doxygen 1.6.1