CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/CondFormats/Common/interface/IOVKeysDescription.h

Go to the documentation of this file.
00001 #ifndef Cond_IOVKeysDescription_h
00002 #define Cond_IOVKeysDescription_h
00003 
00004 #include "CondFormats/Common/interface/SmallWORMDict.h"
00005 #include <string>
00006 
00007 namespace cond {
00008 
00009   /*
00010    * Describe the fixed set of keys to be used in a keylist 
00011    */
00012   class IOVKeysDescription : public IOVDescription {
00013   public:
00014     IOVKeysDescription(){}
00015     explicit IOVKeysDescription(std::vector<std::string> const & idict, std::string const & itag) :
00016       dict_m(idict), m_tag(itag){}
00017 
00018     virtual ~IOVKeysDescription(){}
00019     virtual IOVKeysDescription * clone() const { return new  IOVKeysDescription(*this);}
00020 
00021     // the associated "tag"
00022     std::string const & tag() const { return m_tag; }
00023  
00024 
00025     // the list of keys
00026     SmallWORMDict const & dict() const { return dict_m;}
00027 
00028   private:
00029     SmallWORMDict dict_m;
00030     std::string m_tag;
00031 
00032   };
00033 
00034 
00035 }
00036 
00037 #endif