CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Public Attributes
cond::KeyedElement Class Reference

#include <KeyedElement.h>

Public Member Functions

 KeyedElement (BaseKeyed *obj, cond::Time_t key)
 
 KeyedElement (BaseKeyed *obj, std::string key)
 

Static Public Member Functions

static cond::Time_t convert (std::string key)
 

Public Attributes

cond::Time_t m_key
 
BaseKeyedm_obj
 
std::string m_skey
 

Detailed Description

Definition at line 10 of file KeyedElement.h.

Constructor & Destructor Documentation

◆ KeyedElement() [1/2]

cond::KeyedElement::KeyedElement ( BaseKeyed obj,
cond::Time_t  key 
)
inline

Definition at line 13 of file KeyedElement.h.

13  : m_obj(obj), m_skey(""), m_key(key) {
14  std::ostringstream ss;
15  ss << key;
16  m_skey = ss.str();
17  (*obj).setKey(m_skey);
18  }

References crabWrapper::key, m_skey, and contentValuesCheck::ss.

◆ KeyedElement() [2/2]

cond::KeyedElement::KeyedElement ( BaseKeyed obj,
std::string  key 
)
inline

Definition at line 21 of file KeyedElement.h.

21  : m_obj(obj), m_skey(key), m_key(convert(key)) {
22  (*obj).setKey(m_skey);
23  }

References m_skey.

Member Function Documentation

◆ convert()

static cond::Time_t cond::KeyedElement::convert ( std::string  key)
inlinestatic

Definition at line 25 of file KeyedElement.h.

25 { return cond::hash64((unsigned char*)(&key[0]), key.size(), 0); }

References cond::hash64(), and crabWrapper::key.

Member Data Documentation

◆ m_key

cond::Time_t cond::KeyedElement::m_key

Definition at line 29 of file KeyedElement.h.

◆ m_obj

BaseKeyed* cond::KeyedElement::m_obj

Definition at line 27 of file KeyedElement.h.

◆ m_skey

std::string cond::KeyedElement::m_skey

Definition at line 28 of file KeyedElement.h.

Referenced by KeyedElement().

cond::KeyedElement::m_obj
BaseKeyed * m_obj
Definition: KeyedElement.h:27
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
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
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