CMS 3D CMS Logo

KeyedElement.h
Go to the documentation of this file.
4 #include <sstream>
5 
6 namespace cond {
7 
8  /* encapsulate data to write a keyed element in an IOVSequence
9  */
10  class KeyedElement {
11  public:
12  // constructor from int key
14  std::ostringstream ss;
15  ss << key;
16  m_skey = ss.str();
17  (*obj).setKey(m_skey);
18  }
19 
20  // constructor from ascii key
22  (*obj).setKey(m_skey);
23  }
24 
25  static cond::Time_t convert(std::string key) { return cond::hash64((unsigned char*)(&key[0]), key.size(), 0); }
26 
30  };
31 
32 } // namespace cond
hash64.h
Time.h
BaseKeyed.h
cond::KeyedElement::KeyedElement
KeyedElement(BaseKeyed *obj, cond::Time_t key)
Definition: KeyedElement.h:13
cond::KeyedElement::m_obj
BaseKeyed * m_obj
Definition: KeyedElement.h:27
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
cond::KeyedElement::KeyedElement
KeyedElement(BaseKeyed *obj, std::string key)
Definition: KeyedElement.h:21
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cond
Definition: plugin.cc:23
cond::Time_t
unsigned long long Time_t
Definition: Time.h:14
cond::KeyedElement
Definition: KeyedElement.h:10
cond::KeyedElement::m_skey
std::string m_skey
Definition: KeyedElement.h:28
cond::KeyedElement::convert
static cond::Time_t convert(std::string key)
Definition: KeyedElement.h:25
cond::KeyedElement::m_key
cond::Time_t m_key
Definition: KeyedElement.h:29
cond::BaseKeyed
Definition: BaseKeyed.h:14
crabWrapper.key
key
Definition: crabWrapper.py:19
cond::hash64
unsigned long long hash64(unsigned char *k, unsigned long long length, unsigned long long level)
Definition: hash64.cc:68