| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ParsersStandardMisc5.cpp
Go to the documentation of this file.
1 #include "ParsersStandardMiscCommon.h"
2
3 StatusCode Gaudi::Parsers::parse(std::map<unsigned int, std::string>& result, const std::string& input) {
4 return Gaudi::Parsers::parse_(result, input);
5 }
6
7 StatusCode Gaudi::Parsers::parse(std::string& name, std::string& value ,
8 const std::string& input ) {
9 Skipper skipper;
10 KeyValueGrammar<IteratorT, Skipper> g;
11 KeyValueGrammar<IteratorT, Skipper>::ResultT result;
12 std::string::const_iterator iter = input.begin();
13 bool parse_result = qi::phrase_parse(iter, input.end(), g, skipper,
14 result) && (iter==input.end());
15 if (parse_result) {
16 name = result.first;
17 value = result.second;
18 }
19 return parse_result;
20 }
21
22 StatusCode Gaudi::Parsers::parse(std::map<std::string, std::pair<double, double> >& result, const std::string& input) {
23 return Gaudi::Parsers::parse_(result, input);
24 }