1 #ifndef GAUDIKERNEL_DATAOBJID
2 #define GAUDIKERNEL_DATAOBJID 1
4 #include "GaudiKernel/ClassID.h"
5 #include "GaudiKernel/StatusCode.h"
8 #include <unordered_set>
45 DataObjID(
const std::string&
key,
const std::string& className);
49 const std::string&
key()
const {
return m_key; }
83 static std::once_flag
m_ip;
88 m_clid(0), m_hash(0), m_key(
"INVALID"), m_className(
"") {}
91 m_clid(0), m_key(key), m_className(
"") {
97 m_clid(clid), m_key(key) {
103 m_key(key), m_className(className) {
110 m_clid(d.m_clid), m_hash(d.m_hash), m_key(d.m_key), m_className(d.m_className) {}
124 typedef std::unordered_set<DataObjID, DataObjID_Hasher>
DataObjIDColl;
void updateKey(const std::string &key)
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
interface to the CLID database
static IClassIDSvc * p_clidSvc
std::ostream & toStream(ITERATOR first, ITERATOR last, std::ostream &s, const std::string &open, const std::string &close, const std::string &delim)
the helper function to print the sequence
This class is used for returning status codes from appropriate routines.
const std::string & key() const
unsigned int CLID
Class ID definition.
void parse(const std::string &key)
bool operator==(const DataObjID &other) const
bool operator<(const DataObjID &other) const
std::string fullKey() const
std::size_t operator()(const DataObjID &k) const
static std::once_flag m_ip
Helper functions to set/get the application return code.
std::unordered_set< DataObjID, DataObjID_Hasher > DataObjIDColl
friend std::ostream & operator<<(std::ostream &str, const DataObjID &d)