Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:56:55

0001 #ifndef _TOOLBOX_
0002 #define _TOOLBOX_
0003 #include <cstdlib>
0004 #include <string>
0005 #include <algorithm>
0006 #include <iostream>
0007 
0008 #include "boost/property_tree/ptree.hpp"
0009 #include "boost/property_tree/info_parser.hpp"
0010 
0011 namespace AllInOneConfig {
0012 
0013   inline void dump(const boost::property_tree::ptree& tree) {
0014     for (const auto& it : tree) {
0015       auto key = it.first, value = tree.get<std::string>(key);
0016       std::cout << key << '\t' << value << '\n';
0017     }
0018     std::cout << std::flush;
0019   }
0020 
0021 }  // namespace AllInOneConfig
0022 #endif