ATLAS Offline Software
Loading...
Searching...
No Matches
VP1SGContentsHelper.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5
7// //
8// Header file for class VP1SGContentsHelper //
9// //
10// Description: Helper class for retrieving the available //
11// keys in storegate for a given type. //
12// //
13// Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
14// Initial version: March 2008 //
15// //
17
18#ifndef VP1SGCONTENTSHELPER_H
19#define VP1SGCONTENTSHELPER_H
20
23#include <QStringList>
24class StoreGateSvc;
25
27public:
28
29 VP1SGContentsHelper( IVP1System *, const bool detStore = false );//For messages in gui (detStore=true takes detector rather than event store)
32
33 template <typename T>
34 QStringList getKeys() const;
35 QStringList getKeys( const CLID& id ) const;
36
37 template <typename T>
38 bool contains( const QString& key ) const;
39 bool contains( const CLID& id, const QString& key ) const;
40
41 QList<CLID> getPossibleCLIDs() const;
42
43private:
44
46
47};
48
49
51// Inlines //
53
54template <typename T>
55inline QStringList VP1SGContentsHelper::getKeys() const
56{
58}
59
60template <typename T>
61inline bool VP1SGContentsHelper::contains( const QString& key ) const
62{
63 return contains(ClassID_traits<T>::ID(),key);
64}
65
66
67#endif
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
uint32_t CLID
The Class ID type.
The Athena Transient Store API.
VP1HelperClassBase(IVP1System *sys=0, QString helpername="")
VP1SGContentsHelper(IVP1System *, const bool detStore=false)
bool contains(const QString &key) const
QStringList getKeys() const
QList< CLID > getPossibleCLIDs() const