![]() |
ATLAS Offline Software
|
manages the address providers and add proxies on demand to the store More...
#include <ProxyProviderSvc.h>
Public Types | |
| typedef std::list< IAddressProvider * >::iterator | pAPiterator |
| typedef std::list< SG::TransientAddress * > | TAdList |
| typedef TAdList::iterator | TAdIterator |
Public Member Functions | |
| virtual StatusCode | preLoadProxies (IProxyRegistry &storeToModify) override |
| IProxyProvider interface. | |
| virtual StatusCode | loadProxies (IProxyRegistry &storeToModify) override |
| add proxies to the store to modify (during Begin Event) | |
| virtual SG::DataProxy * | retrieveProxy (const CLID &id, const std::string &key, IProxyRegistry &storeToModify) override |
| Use a provider to create a proxy for ID/KEY. | |
| SG::DataProxy * | addAddress (IProxyRegistry &storeToModify, SG::TransientAddress &&tad) |
| create a new Proxy, overriding CLID and/or key | |
| virtual void | addProvider (IAddressProvider *aProvider) override final |
| IAddressProvider manager functionality add a provider to the set of known ones. | |
| virtual StatusCode | initialize () override |
| Service boilerplate. | |
| ProxyProviderSvc (const std::string &name, ISvcLocator *svcLoc) | |
| Standard Service Constructor. | |
| virtual | ~ProxyProviderSvc () |
Private Member Functions | |
| const EventContext & | contextFromStore (IProxyRegistry &ds) const |
| Retrieve the EventContext saved in store DS. | |
| StatusCode | addAddresses (IProxyRegistry &store, TAdList &tList) |
| Add lists of TADs to the store. | |
| void | providerNamesPropertyHandler (Gaudi::Details::PropertyBase &theProp) |
| the handler for m_providerNames | |
| StatusCode | doPreLoadProxies (IProxyRegistry &storeToModify) |
Private Attributes | |
| StringArrayProperty | m_providerNames |
| property: the services declared as providers | |
| std::list< IAddressProvider * > | m_providers |
| the providers we know about. WE DON'T OWN THEM | |
| ServiceHandle< IConversionSvc > | m_pDataLoader |
| Persistency Service. | |
| std::vector< IProxyRegistry * > | m_pendingLoad |
| List of pending stores on which to run preLoadProxies(). | |
manages the address providers and add proxies on demand to the store
Definition at line 41 of file ProxyProviderSvc.h.
| typedef std::list<IAddressProvider*>::iterator ProxyProviderSvc::pAPiterator |
Definition at line 44 of file ProxyProviderSvc.h.
| typedef TAdList::iterator ProxyProviderSvc::TAdIterator |
Definition at line 46 of file ProxyProviderSvc.h.
| typedef std::list<SG::TransientAddress*> ProxyProviderSvc::TAdList |
Definition at line 45 of file ProxyProviderSvc.h.
| ProxyProviderSvc::ProxyProviderSvc | ( | const std::string & | name, |
| ISvcLocator * | svcLoc ) |
Standard Service Constructor.
Definition at line 52 of file ProxyProviderSvc.cxx.
|
virtual |
Definition at line 60 of file ProxyProviderSvc.cxx.
| SG::DataProxy * ProxyProviderSvc::addAddress | ( | IProxyRegistry & | storeToModify, |
| SG::TransientAddress && | tad ) |
create a new Proxy, overriding CLID and/or key
Definition at line 185 of file ProxyProviderSvc.cxx.
|
private |
Add lists of TADs to the store.
| store | Store to which to add. |
| tList | List of TADs from all providers. |
if proxy exists, simply update the proxy with new TransientAddress, else construct a new proxy
Definition at line 158 of file ProxyProviderSvc.cxx.
|
inlinefinaloverridevirtual |
IAddressProvider manager functionality add a provider to the set of known ones.
PROVIDER IS OWNED BY THE CLIENT
Definition at line 119 of file ProxyProviderSvc.h.
|
private |
Retrieve the EventContext saved in store DS.
| ds | The store from which to retrieve the context. |
If there is no context recorded in the store, return a default-initialized context.
Definition at line 275 of file ProxyProviderSvc.cxx.
|
private |
Definition at line 102 of file ProxyProviderSvc.cxx.
|
overridevirtual |
Service boilerplate.
Definition at line 63 of file ProxyProviderSvc.cxx.
|
overridevirtual |
add proxies to the store to modify (during Begin Event)
IProxyProvider interface add proxies to the store to modify.
Definition at line 138 of file ProxyProviderSvc.cxx.
|
overridevirtual |
IProxyProvider interface.
IProxyProvider interface add proxies (before Begin Event)
add proxies to the store to modify (before Begin Event)
Definition at line 120 of file ProxyProviderSvc.cxx.
|
private |
the handler for m_providerNames
Definition at line 289 of file ProxyProviderSvc.cxx.
|
overridevirtual |
Use a provider to create a proxy for ID/KEY.
If successful, the new proxy will be added to DATASTORE and returned; otherwise, return null.
Definition at line 249 of file ProxyProviderSvc.cxx.
|
private |
Persistency Service.
Definition at line 112 of file ProxyProviderSvc.h.
|
private |
List of pending stores on which to run preLoadProxies().
Definition at line 115 of file ProxyProviderSvc.h.
|
private |
property: the services declared as providers
Definition at line 102 of file ProxyProviderSvc.h.
|
private |
the providers we know about. WE DON'T OWN THEM
Definition at line 110 of file ProxyProviderSvc.h.