CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_2_9_HLT1_bphpatch4/src/CondFormats/Common/interface/BaseKeyed.h

Go to the documentation of this file.
00001 #ifndef Cond_BaseKeyed_h
00002 #define Cond_BaseKeyed_h
00003 
00004 #include <string>
00005 
00006 /*  A Simple base class to avoid useless templates and infinite declaration of
00007  *  wrappers in dictionaries
00008  */
00009 
00010 namespace cond {
00011   
00012    class BaseKeyed {
00013    public:
00014     BaseKeyed(){}
00015     explicit BaseKeyed(std::string const & ikey) : m_key(ikey){}
00016     virtual ~BaseKeyed(){}
00017 
00018     std::string const & key() const { return m_key;}
00019     void setKey(std::string const & ikey) {m_key=ikey;}
00020 
00021   private:
00022     // the key as string
00023     std::string m_key;
00024   };
00025 
00026 }
00027 #endif