The Gaudi Framework
v29r0 (ff2e7097)
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
{
5
return
Gaudi::Parsers::parse_
( result, input );
6
}
7
8
StatusCode
Gaudi::Parsers::parse
(
std::string
&
name
,
std::string
& value,
const
std::string
& input )
9
{
10
Skipper
skipper;
11
KeyValueGrammar<IteratorT, Skipper>
g
;
12
KeyValueGrammar<IteratorT, Skipper>::ResultT
result;
13
auto
iter = input.
begin
();
14
bool
parse_result = qi::phrase_parse( iter, input.
end
(),
g
, skipper, 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
{
24
return
Gaudi::Parsers::parse_
( result, input );
25
}
Gaudi::Parsers::parse_
StatusCode parse_(ResultT &result, const std::string &input)
Definition:
ParsersFactory.h:33
gaudiComponentHelp.name
name
Definition:
gaudiComponentHelp.py:32
ParsersStandardMiscCommon.h
Gaudi::Parsers::parse
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
Definition:
DODBasicMapper.cpp:13
std::string::end
T end(T...args)
std::map
STL class.
std::string
STL class.
StatusCode
This class is used for returning status codes from appropriate routines.
Definition:
StatusCode.h:28
Gaudi::Parsers::SkipperGrammar
Definition:
Grammar.h:48
std::pair
std::string::begin
T begin(T...args)
gaudirun.g
dictionary g
Definition:
gaudirun.py:439
Gaudi::Parsers::KeyValueGrammar
Definition:
GrammarsV2.h:604
GaudiKernel
src
Lib
ParsersStandardMisc5.cpp
Generated on Tue Sep 26 2017 11:39:07 for The Gaudi Framework by
1.8.11