CMS 3D CMS Logo

DropBoxMetadata.cc
Go to the documentation of this file.
1 
2 /*
3  * See header file for a description of this class.
4  *
5  * $Date: 2011/02/23 16:55:18 $
6  * $Revision: 1.1 $
7  * \author G. Cerminara - CERN
8  */
9 
11 
12 using std::map;
13 using std::string;
14 
16 
18 
19 void DropBoxMetadata::Parameters::addParameter(const string& key, const string& value) { theParameters[key] = value; }
20 
21 string DropBoxMetadata::Parameters::getParameter(const string& key) const {
22  string ret;
23  map<string, string>::const_iterator thePair = theParameters.find(key);
24  if (thePair != theParameters.end()) {
25  ret = (*thePair).second;
26  }
27  return ret;
28 }
29 
30 const map<string, string>& DropBoxMetadata::Parameters::getParameterMap() const { return theParameters; }
31 
34 }
35 
37  return recordSet.find(record)->second;
38 }
39 
41  if (recordSet.find(record) != recordSet.end())
42  return true;
43 
44  return false;
45 }
JetCorrectorParameters::Record record
Definition: classes.h:7
ret
prodAgent to be discontinued
bool knowsRecord(const std::string &record) const
std::string getParameter(const std::string &key) const
const std::map< std::string, std::string > & getParameterMap() const
Definition: value.py:1
void addParameter(const std::string &key, const std::string &vale)
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.