ATLAS Offline Software
Loading...
Searching...
No Matches
transientKey.h File Reference
#include <string>
Include dependency graph for transientKey.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool isTransientKey (const std::string &key)
std::string transientKey (const std::string &key)
 Make a key transient.

Function Documentation

◆ isTransientKey()

bool isTransientKey ( const std::string & key)
inline

Definition at line 41 of file transientKey.h.

42{
43 return !key.empty() && key[0] == '_';
44}

◆ transientKey()

std::string transientKey ( const std::string & key)
inline

Make a key transient.

Parameters
keyThe key to transform;

Definition at line 51 of file transientKey.h.

52{
53 if (isTransientKey (key)) {
54 return key;
55 }
56 return "_" + key;
57}
bool isTransientKey(const std::string &key)