The Gaudi Framework  v33r1 (b1225454)
ICondSvc.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef GAUDIKERNEL_ICONDSVC_H
12 #define GAUDIKERNEL_ICONDSVC_H 1
13 
14 #include "GaudiKernel/DataHandle.h"
15 #include "GaudiKernel/DataObjID.h"
18 #include "GaudiKernel/IAlgorithm.h"
19 #include "GaudiKernel/IService.h"
20 
21 #include <set>
22 #include <sstream>
23 #include <string>
24 
36 class ConditionSlotFuture;
37 class IConditionIOSvc;
38 
39 class GAUDI_API ICondSvc : virtual public IService {
40 public:
42 
44  virtual StatusCode regHandle( IAlgorithm* alg, const Gaudi::DataHandle& id ) = 0;
45 
47  virtual bool isValidID( const EventContext& ctx, const DataObjID& id ) const = 0;
48 
50  virtual const std::set<IAlgorithm*>& condAlgs() const = 0;
51 
53  virtual bool isRegistered( IAlgorithm* alg ) const = 0;
54 
56  virtual bool isRegistered( const DataObjID& id ) const = 0;
57 
59  virtual const DataObjIDColl& conditionIDs() const = 0;
60 
62  virtual void dump( std::ostream& ost ) const = 0;
63 
65  virtual StatusCode validRanges( std::vector<EventIDRange>& ranges, const DataObjID& id ) const = 0;
66 
68  virtual ConditionSlotFuture* startConditionSetup( const EventContext& ctx ) = 0;
69 
72  virtual StatusCode registerConditionIOSvc( IConditionIOSvc* ioService ) = 0;
73 };
74 
75 #endif
This class represents an entry point to all the event specific data.
Definition: EventContext.h:34
General service interface definition.
Definition: IService.h:28
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:61
Interface for the Condition Service.
Definition: ICondSvc.h:39
The IAlgorithm is the interface implemented by the Algorithm base class.
Definition: IAlgorithm.h:38
STL class.
STL class.
Event Range object.
DeclareInterfaceID(IService, 4, 0)
InterfaceID.
#define GAUDI_API
Definition: Kernel.h:81
STL class.