Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:58

0001 #ifndef CondFormatsCommon_DropBoxMetadata_H
0002 #define CondFormatsCommon_DropBoxMetadata_H
0003 
0004 /** \class DropBoxMetadata
0005  *  No description available.
0006  *
0007  *  $Date: 2011/02/23 16:55:18 $
0008  *  $Revision: 1.1 $
0009  *  \author G. Cerminara - CERN
0010  */
0011 
0012 #include "CondFormats/Serialization/interface/Serializable.h"
0013 
0014 #include <map>
0015 #include <string>
0016 
0017 class DropBoxMetadata {
0018 public:
0019   /// Constructor
0020   DropBoxMetadata();
0021 
0022   /// Destructor
0023   virtual ~DropBoxMetadata();
0024 
0025   class Parameters {
0026   public:
0027     void addParameter(const std::string& key, const std::string& vale);
0028 
0029     std::string getParameter(const std::string& key) const;
0030 
0031     const std::map<std::string, std::string>& getParameterMap() const;
0032 
0033   private:
0034     std::map<std::string, std::string> theParameters;
0035 
0036     COND_SERIALIZABLE;
0037   };
0038 
0039   // Operations
0040   void addRecordParameters(const std::string& record, const Parameters& params);
0041 
0042   const Parameters& getRecordParameters(const std::string& record) const;
0043 
0044   bool knowsRecord(const std::string& record) const;
0045 
0046   const std::vector<std::string> getAllRecords() const;
0047 
0048 protected:
0049 private:
0050   std::map<std::string, DropBoxMetadata::Parameters> recordSet;
0051 
0052   COND_SERIALIZABLE;
0053 };
0054 #endif