12 #include <boost/property_tree/ptree.hpp> 14 #include <boost/spirit/include/qi.hpp> 15 #include <boost/spirit/include/phoenix_core.hpp> 16 #include <boost/spirit/include/phoenix_operator.hpp> 19 using boost::spirit::qi::int_;
20 using boost::spirit::qi::double_;
23 using boost::spirit::qi::phrase_parse;
24 using boost::spirit::ascii::space;
25 using boost::phoenix::ref;
31 KTLOGGER(fnplog,
"KTFilenameParsers");
36 bool parsed = phrase_parse(filename.begin(), filename.end(),
37 (int_[ref(
fNEvents)=boost::spirit::qi::_1] >>
"events_" >>
38 double_[ref(
fEventLength) = boost::spirit::qi::_1] >>
"dur_" >>
39 double_[ref(
fdfdt) = boost::spirit::qi::_1] >>
"dfdt_" >>
40 double_[ref(
fSignalPower) = boost::spirit::qi::_1] >>
"power.egg" 44 KTERROR(fnplog,
"Filename was not parsed correctly: " << filename);
KTLOGGER(applog, "KTApplication")
KTLocustMCFilename(const std::string &filename)
Contains the logger class and macros, based on Kasper's KLogger class.