|
ATLAS Offline Software
|
Go to the documentation of this file.
10 #ifndef SGTOOLS_VERSIONEDKEY_H
11 #define SGTOOLS_VERSIONEDKEY_H 1
33 friend class ::SGImplSvc;
42 static bool isAuto(
const std::string&);
68 void decode(std::string& outKey,
unsigned char&
version)
const;
74 const std::string&
key()
const;
82 bool sameKey(
const std::string& baseKey)
const;
84 bool sameKey(
const char* baseKey)
const;
93 void copyVK(
const std::string& inKey);
99 static unsigned char autoV() {
return 99;}
101 static const char*
autoVS() {
return "_99_"; }
117 return ost <<
k.rawVersionKey();
static bool isVersionedKey(const char *)
quickly determine whether a string has the right format to be a VK
VersionedKey()
default constructor (invalid state, do not use)
static unsigned char defaultV()
VersionedKey(const VersionedKey &rhs)=default
void decode(std::string &outKey, unsigned char &version) const
sets outKey to point to base key, and version to encoded version (0 is taken to mean default version)...
unsigned char version() const
static const char * autoVS()
VersionedKey & operator=(const VersionedKey &rhs)=default
static const char * formatString()
static const char * defaultVS()
std::string m_versionKey
the encoded version/key.
The Athena Transient Store API.
a StoreGateSvc key with a version number. Notice that StoreGate does not order multiple instances of ...
bool operator<(const SG::VersionedKey &lhs, const SG::VersionedKey &rhs)
sort according to highest key version
static const char * versionFormatString()
The Athena Transient Store API.
void encode(const std::string &inKey, unsigned char version)
const std::string & rawVersionKey() const
const std::string & key() const
static unsigned char autoV()
VersionedKey(VersionedKey &&rhs)=default
bool sameKey(const VersionedKey &vkey) const
compare base keys
void copyVK(const std::string &inKey)
associate a data object with its VersionedKey The object is held by a ReadHandle to delay its retriev...
std::ostream & operator<<(std::ostream &os, const ArenaAllocatorBase::Stats::Stat &stat)
Format a statistic structure.