7 #ifndef COMBINE_OPTION_TREES_HPP_ 8 #define COMBINE_OPTION_TREES_HPP_ 9 #include "boost/foreach.hpp" 10 #include "boost/property_tree/ptree.hpp" 11 namespace bpt = boost::property_tree;
23 BOOST_FOREACH(bpt::ptree::value_type
const& vt, pt2) {
26 if( vt.first == kwds::Root::input() ) {
27 if( ! pt1.count(kwds::Root::input()) ) {
28 pt1.put_child(kwds::Root::input(),
bpt::ptree());
30 bpt::ptree& in1 = pt1.get_child(kwds::Root::input());
31 in1.insert(in1.end(), vt.second.begin(), vt.second.end());
33 }
else if( vt.first == kwds::Root::input_csv() ) {
34 if( ! pt1.count(kwds::Root::input_csv()) ) {
35 pt1.put_child(kwds::Root::input_csv(),
bpt::ptree());
37 bpt::ptree& in1 = pt1.get_child(kwds::Root::input_csv());
38 in1.insert(in1.end(), vt.second.begin(), vt.second.end());
41 }
else if( ! pt1.count(vt.first) ) {
void combine_option_trees(bpt::ptree &pt1, bpt::ptree const &pt2)
Definition: combine_option_trees.hpp:19
Main namespace of vdj_pipe library.
Definition: keywords_variable.hpp:11
bpt::ptree ptree
Definition: processing_step_utils.hpp:19