SimpleParameterSet.cpp
Go to the documentation of this file.
1 #include <DatabaseUtils/SimpleParameterSet.h>
2 
3 namespace dbutils {
4 
5 std::vector<std::string> SimpleParameterSet::keys() const
6 {
7  std::vector<std::string> resultList;
8  std::map<std::string, std::string>::const_iterator iter;
9  std::map<std::string, std::string>::const_iterator iterEnd = _paramSet.end();
10  for (iter = _paramSet.begin(); iter != iterEnd; ++iter) {
11  resultList.push_back(iter->first);
12  }
13  return resultList;
14 }
15 
17 {
19  std::map<std::string, std::string>::const_iterator iter;
20  std::map<std::string, std::string>::const_iterator iterEnd = _paramSet.end();
21  bool first = true;
22  for (iter = _paramSet.begin(); iter != iterEnd; ++iter) {
23  if (first) {first = false;}
24  else {result.append(";");}
25  result.append(iter->first);
26  result.append("=");
27  result.append(iter->second);
28  }
29  return result;
30 }
31 
32 } // end of namespace dbutils
std::map< std::string, std::string > _paramSet
std::vector< std::string > keys() const
enum BeamMode string