CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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
tuple 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
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
tuple 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

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

Definition at line 25 of file KeyedElement.h.

References cond::hash64().

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
tuple key
prepare the HTCondor submission files and eventually submit them

Member Data Documentation

cond::Time_t cond::KeyedElement::m_key
BaseKeyed* cond::KeyedElement::m_obj
std::string cond::KeyedElement::m_skey

Definition at line 28 of file KeyedElement.h.

Referenced by KeyedElement().