CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 14 of file KeyedElement.h.

References combine::key, and m_skey.

14  :
15  m_obj(obj),
16  m_skey(""),
17  m_key(key) {
18  std::ostringstream ss; ss << key;
19  m_skey = ss.str();
20  (*obj).setKey(m_skey);
21  }
BaseKeyed * m_obj
Definition: KeyedElement.h:35
tuple obj
Example code starts here #.
Definition: VarParsing.py:655
list key
Definition: combine.py:13
std::string m_skey
Definition: KeyedElement.h:36
cond::Time_t m_key
Definition: KeyedElement.h:37
cond::KeyedElement::KeyedElement ( BaseKeyed obj,
std::string  key 
)
inline

Definition at line 24 of file KeyedElement.h.

References m_skey.

24  :
25  m_obj(obj),
26  m_skey(key),
27  m_key(convert(key)) {
28  (*obj).setKey(m_skey);
29  }
BaseKeyed * m_obj
Definition: KeyedElement.h:35
tuple obj
Example code starts here #.
Definition: VarParsing.py:655
static cond::Time_t convert(std::string key)
Definition: KeyedElement.h:31
list key
Definition: combine.py:13
std::string m_skey
Definition: KeyedElement.h:36
cond::Time_t m_key
Definition: KeyedElement.h:37

Member Function Documentation

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

Definition at line 31 of file KeyedElement.h.

References cond::hash64().

31  {
32  return cond::hash64( (unsigned char*)(&key[0]),key.size(),0);
33  }
unsigned long long hash64(unsigned char *k, unsigned long long length, unsigned long long level)
Definition: hash64.cc:45
list key
Definition: combine.py:13

Member Data Documentation

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

Definition at line 36 of file KeyedElement.h.

Referenced by KeyedElement().