File indexing completed on 2024-04-06 12:01:58
0001 #ifndef CondFormatsCommon_DropBoxMetadata_H
0002 #define CondFormatsCommon_DropBoxMetadata_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include "CondFormats/Serialization/interface/Serializable.h"
0013
0014 #include <map>
0015 #include <string>
0016
0017 class DropBoxMetadata {
0018 public:
0019
0020 DropBoxMetadata();
0021
0022
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
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