CMS 3D CMS Logo

toolbox.h
Go to the documentation of this file.
1 #ifndef _TOOLBOX_
2 #define _TOOLBOX_
3 #include <cstdlib>
4 #include <string>
5 #include <algorithm>
6 #include <iostream>
7 
8 #include "boost/property_tree/ptree.hpp"
9 #include "boost/property_tree/info_parser.hpp"
10 
11 namespace AllInOneConfig {
12 
13  inline void dump(const boost::property_tree::ptree& tree) {
14  for (const auto& it : tree) {
15  auto key = it.first, value = tree.get<std::string>(key);
16  std::cout << key << '\t' << value << '\n';
17  }
18  std::cout << std::flush;
19  }
20 
21 } // namespace AllInOneConfig
22 #endif
void dump(const boost::property_tree::ptree &tree)
Definition: toolbox.h:13
key
prepare the HTCondor submission files and eventually submit them
Definition: value.py:1
Definition: tree.py:1