The Gaudi Framework
v26r1
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
}
GaudiKernel
src
Lib
ParsersStandardMisc5.cpp
Generated on Mon Feb 16 2015 11:56:56 for The Gaudi Framework by
1.8.2