|
ATLAS Offline Software
|
Go to the documentation of this file.
28 std::string::size_type ipos =
key.find (
'.');
29 if (ipos == std::string::npos)
31 return key.substr (0, ipos);
43 std::string::size_type ipos =
key.find (
'.');
44 if (ipos == std::string::npos)
46 return key.substr (ipos+1, std::string::npos);
60 if (cont.empty())
return decor;
61 if (decor.empty())
return cont;
62 return cont +
'.' + decor;
78 if (
key.empty() ||
key.ends_with (
'+')) {
81 if (
key.find(
'.') != std::string::npos) {
83 "Its value should not contain any container name.)");
101 const std::string toerase = contKey.fullKey().
key() +
".";
102 const size_t pos =
key.find(toerase);
103 if (
pos != std::string::npos) {
104 key.erase(
pos, toerase.size());
std::string contKeyFromKey(const std::string &key)
Extract the container part of key.
A property holding a SG store/key/clid from which a VarHandle is made.
std::string decorKeyFromKey(const std::string &key)
Extract the decoration part of key.
const std::string & key() const
Return the StoreGate ID for the referenced object.
Some common helper functions used by decoration handles.
Exceptions that can be thrown from StoreGate.
void removeContFromDecorKey(const VarHandleKey &contKey, std::string &key)
Remove container name from decoration key.
Exception — Bad key format for VarHandleKey.
A property holding a SG store/key/clid from which a VarHandle is made.
std::string makeContDecorKey(const std::string &cont, const std::string &decor)
Make a StoreGate key from container and decoration name.