ATLAS Offline Software
Loading...
Searching...
No Matches
DecodeVersionKey.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#ifndef GEOMODELSVC_DECODEVERSIONKEY_H
6#define GEOMODELSVC_DECODEVERSIONKEY_H
7
8#include <string>
9class IGeoModelSvc;
10class IGeoDbTagSvc;
11
16
18{
19
20 public:
24 DecodeVersionKey(const IGeoModelSvc *, const std::string & node);
25 // Overloading the constructor to allow adiabatic migration of clients away from the IGeoModelSvc
26 DecodeVersionKey(const IGeoDbTagSvc *, const std::string & node);
27 DecodeVersionKey(const std::string & node);
28
30 const std::string & tag() const;
31
33 const std::string & node() const;
34
36 bool custom() const;
37
38 private:
39
40 template <class T>
41 void defineTag(const T* svc, const std::string & node);
42
43 // utilily for dealing with CUSTOM tags.
44 bool getCustomTag(const std::string & inputTag, std::string & outputTag);
45
46 std::string m_tag;
47 std::string m_node;
49
50};
51
52#endif // GEOMODELSVC_DECODEVERSIONKEY_H
bool getCustomTag(const std::string &inputTag, std::string &outputTag)
DecodeVersionKey(const IGeoModelSvc *, const std::string &node)
Constructor is passed a pointer to GeoModelSvc plus the node for which you want the tag.
void defineTag(const T *svc, const std::string &node)
bool custom() const
Return true if CUSTOM is selected.
const std::string & tag() const
Return version tag.
const std::string & node() const
Return the version node.