CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DropBoxMetadata.h
Go to the documentation of this file.
1 #ifndef CondFormatsCommon_DropBoxMetadata_H
2 #define CondFormatsCommon_DropBoxMetadata_H
3 
13 #include <map>
14 #include <string>
15 
17 public:
20 
22  virtual ~DropBoxMetadata();
23 
24 
25  class Parameters {
26  public:
27 
28  void addParameter(const std::string& key, const std::string& vale);
29 
30  std::string getParameter(const std::string& key) const;
31 
32  const std::map<std::string, std::string> & getParameterMap() const;
33 
34  private:
35 
36  std::map<std::string, std::string> theParameters;
37  };
38 
39  // Operations
40  void addRecordParameters(const std::string& record, const Parameters& params);
41 
42  const Parameters& getRecordParameters(const std::string& record) const;
43 
44  bool knowsRecord(const std::string& record) const;
45 
46 protected:
47 
48 private:
49  std::map<std::string, DropBoxMetadata::Parameters> recordSet;
50 
51 };
52 #endif
53 
JetCorrectorParameters::Record record
Definition: classes.h:11
bool knowsRecord(const std::string &record) const
std::string getParameter(const std::string &key) const
std::map< std::string, std::string > theParameters
const std::map< std::string, std::string > & getParameterMap() const
void addParameter(const std::string &key, const std::string &vale)
list key
Definition: combine.py:13
std::map< std::string, DropBoxMetadata::Parameters > recordSet
void addRecordParameters(const std::string &record, const Parameters &params)
virtual ~DropBoxMetadata()
Destructor.
const Parameters & getRecordParameters(const std::string &record) const
DropBoxMetadata()
Constructor.