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.

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

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  }
BaseKeyed * m_obj
Definition: KeyedElement.h:27
key
prepare the HTCondor submission files and eventually submit them
std::string m_skey
Definition: KeyedElement.h:28
cond::Time_t m_key
Definition: KeyedElement.h:29

◆ KeyedElement() [2/2]

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

Definition at line 21 of file KeyedElement.h.

References m_skey.

21  : m_obj(obj), m_skey(key), m_key(convert(key)) {
22  (*obj).setKey(m_skey);
23  }
BaseKeyed * m_obj
Definition: KeyedElement.h:27
key
prepare the HTCondor submission files and eventually submit them
static cond::Time_t convert(std::string key)
Definition: KeyedElement.h:25
std::string m_skey
Definition: KeyedElement.h:28
cond::Time_t m_key
Definition: KeyedElement.h:29

Member Function Documentation

◆ convert()

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

Definition at line 25 of file KeyedElement.h.

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

25 { return cond::hash64((unsigned char*)(&key[0]), key.size(), 0); }
unsigned long long hash64(unsigned char *k, unsigned long long length, unsigned long long level)
Definition: hash64.cc:68
key
prepare the HTCondor submission files and eventually submit them

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().