ATLAS Offline Software
Loading...
Searching...
No Matches
StoreGate/StoreGate/DecorKeyHelpers.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2/*
3 * Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration.
4 */
11
12
13#ifndef STOREGATE_DECORKEYHELPERS_H
14#define STOREGATE_DECORKEYHELPERS_H
15
16
17#include <string>
18
19
20namespace SG {
21
22class VarHandleKey;
23
30std::string contKeyFromKey (const std::string& key);
31
32
40std::string decorKeyFromKey (const std::string& key, const std::string& deflt = "");
41
42
51std::string makeContDecorKey(const std::string& cont, const std::string& decor);
52
53
64std::string makeContDecorKey(const VarHandleKey& contKey, const std::string& sgkey);
65
66
74void removeContFromDecorKey(const VarHandleKey& contKey, std::string& key);
75
76} // namespace SG
77
78
79#endif // not STOREGATE_DECORKEYHELPERS_H
A property holding a SG store/key/clid from which a VarHandle is made.
Forward declaration.
void removeContFromDecorKey(const VarHandleKey &contKey, std::string &key)
Remove container name from decoration key.
std::string makeContDecorKey(const std::string &cont, const std::string &decor)
Make a StoreGate key from container and decoration name.
std::string contKeyFromKey(const std::string &key)
Extract the container part of key.
std::string decorKeyFromKey(const std::string &key, const std::string &deflt)
Extract the decoration part of key.