ATLAS Offline Software
Loading...
Searching...
No Matches
IAddressProvider.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
12
13#ifndef ATHENAKERNEL_IADDRESSPROVIDER_H
14# define ATHENAKERNEL_IADDRESSPROVIDER_H
15
16#include <list>
17#include "GaudiKernel/StatusCode.h"
18#include "GaudiKernel/IInterface.h"
20
21class EventContext;
22namespace SG {
23 class TransientAddress;
24}
25
27 : virtual public IInterface
28{
29public:
31
32 typedef std::list<SG::TransientAddress*> tadList;
33 typedef tadList::iterator tadListIterator;
34
36 virtual StatusCode preLoadAddresses(StoreID::type /* storeID */,
37 tadList& /* list */) {
38 return StatusCode::SUCCESS;
39 }
40
42 virtual StatusCode loadAddresses(StoreID::type /* storeID */,
43 tadList& /* list */) {
44 return StatusCode::SUCCESS;
45 }
46
51 virtual StatusCode updateAddress(StoreID::type storeID,
53 const EventContext& ctx) = 0;
54
55 virtual ~IAddressProvider() {}
56};
57
58
59#endif // ATHENAKERNEL_IADDRESSPROVIDER_H
60
61
62
interface for IOA providers
DeclareInterfaceID(IAddressProvider, 1, 0)
virtual StatusCode updateAddress(StoreID::type storeID, SG::TransientAddress *pTAd, const EventContext &ctx)=0
update a transient Address The ctx argument will give the current event information.
virtual StatusCode loadAddresses(StoreID::type, tadList &)
get all new addresses from Provider for this Event.
std::list< SG::TransientAddress * > tadList
tadList::iterator tadListIterator
virtual StatusCode preLoadAddresses(StoreID::type, tadList &)
get all addresses from Provider : Called before Begin Event
virtual ~IAddressProvider()
Forward declaration.