CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Public Attributes

cond::KeyedElement Class Reference

#include <KeyedElement.h>

List of all members.

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.

                                                 : 
     m_obj(obj), 
     m_skey(""),
     m_key(key) {
     std::ostringstream ss; ss << key;
     m_skey  = ss.str();
     (*obj).setKey(m_skey); 
   }
cond::KeyedElement::KeyedElement ( BaseKeyed obj,
std::string  key 
) [inline]

Definition at line 24 of file KeyedElement.h.

References m_skey.

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

Member Function Documentation

static cond::Time_t cond::KeyedElement::convert ( std::string  key) [inline, static]

Definition at line 31 of file KeyedElement.h.

References cond::hash64().

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

Member Data Documentation

Definition at line 36 of file KeyedElement.h.

Referenced by KeyedElement().