11 #include "Parsers/spirit/ParsersStandardMiscCommon.h"
13 #if defined(DD4HEP_HAVE_ALL_PARSERS)
19 template <>
int parse(std::map<unsigned int, std::string>& result,
const std::string& input) {
20 return parse_(result, input);
31 template <>
int parse(std::string& name, std::string& value,
const std::string& input ) {
33 KeyValueGrammar<IteratorT, Skipper> g;
34 KeyValueGrammar<IteratorT, Skipper>::ResultT result;
35 std::string::const_iterator iter = input.begin();
36 bool parse_result = qi::phrase_parse(iter, input.end(), g, skipper,
37 result) && (iter==input.end());
40 value = result.second;
45 template <>
int parse(std::map<std::string, std::pair<double, double> >& result,
const std::string& input) {
46 return parse_(result, input);