8 #ifndef FAIRMQPARSEREXAMPLE_H 9 #define FAIRMQPARSEREXAMPLE_H 12 #include "FairMQChannel.h" 13 #include "FairMQParser.h" 16 #include <boost/property_tree/ptree.hpp> 35 boost::property_tree::ptree UserParser(
const std::string& filename);
42 boost::property_tree::ptree UserParser(
const std::string& filename,
const std::string& root_node);
50 template <
typename Input_tree_It,
typename Output_tree_It,
typename Compare_key>
51 void ProcessTree(Input_tree_It first, Input_tree_It last, Output_tree_It dest, Compare_key compare)
60 auto begin = first->second.begin ();
61 auto end = first->second.end ();
65 ProcessTree (begin, end, dest, compare);
68 if (compare (first->first))
73 ProcessTree (++first, last, dest, compare);
78 virtual const char* what()
const throw()
80 return "Empty string for the device-id in FairMQParser::ptreeToMQMap(...) function";
Definition: FairMQParserExample.cxx:13
Definition: FairMQParserExample.h:33
Definition: FairMQParserExample.h:76
Definition: FairMQParserExample.h:40