Go to the documentation of this file.00001 #include "ParsersStandardMiscCommon.h"
00002
00003 StatusCode Gaudi::Parsers::parse(std::map<unsigned int, std::string>& result, const std::string& input) {
00004 return Gaudi::Parsers::parse_(result, input);
00005 }
00006
00007 StatusCode Gaudi::Parsers::parse(std::string& name, std::string& value ,
00008 const std::string& input ) {
00009 Skipper skipper;
00010 KeyValueGrammar<IteratorT, Skipper> g;
00011 KeyValueGrammar<IteratorT, Skipper>::ResultT result;
00012 std::string::const_iterator iter = input.begin();
00013 bool parse_result = qi::phrase_parse(iter, input.end(), g, skipper,
00014 result) && (iter==input.end());
00015 if (parse_result) {
00016 name = result.first;
00017 value = result.second;
00018 }
00019 return parse_result;
00020 }
00021
00022 StatusCode Gaudi::Parsers::parse(std::map<std::string, std::pair<double, double> >& result, const std::string& input) {
00023 return Gaudi::Parsers::parse_(result, input);
00024 }