Gaudi Framework, version v24r2
Home
Generated: Wed Dec 4 2013
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
GaudiKernel
src
Lib
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
}
Generated at Wed Dec 4 2013 14:33:10 for Gaudi Framework, version v24r2 by
Doxygen
version 1.8.2 written by
Dimitri van Heesch
, © 1997-2004