LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
Service returning a provider interface. More...
#include "ServiceProviderWrappers.h"
Public Types | |
using | provider_type = PROVIDER |
type of the service provider More... | |
Public Member Functions | |
virtual | ~ServiceProviderInterfaceWrapper ()=default |
Virtual destructor. More... | |
provider_type const * | provider () const |
Returns a constant pointer to the service provider interface. More... | |
Protected Member Functions | |
virtual provider_type const * | do_provider () const =0 |
Implementation of the provider() function, to be overridden. More... | |
Service returning a provider interface.
PROVIDER | type of service provider interface to be returned |
This class provides a art service to wrap a LArSoft service provider interface.
The behaviour of the implementations is not constrained by this interface. It only adds support for lar::providerFrom()
function.
Implementations must override do_provider()
to return a pointer which provider()
will forward to the caller.
Definition at line 134 of file ServiceProviderWrappers.h.
using lar::ServiceProviderInterfaceWrapper< PROVIDER >::provider_type = PROVIDER |
type of the service provider
Definition at line 137 of file ServiceProviderWrappers.h.
|
virtualdefault |
Virtual destructor.
|
protectedpure virtual |
Implementation of the provider() function, to be overridden.
Implemented in lar::example::ShowerCalibrationGaloreScaleService.
|
inline |
Returns a constant pointer to the service provider interface.
Definition at line 144 of file ServiceProviderWrappers.h.