The Gaudi Framework
v30r3 (a5ef0a68)
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
return
StatusCode::SUCCESS
;
19
}
20
return
StatusCode::FAILURE
;
21
}
22
23
StatusCode
Gaudi::Parsers::parse
(
std::map
<
std::string
,
std::pair<double, double>
>& result,
const
std::string
& input )
24
{
25
return
Gaudi::Parsers::parse_
( result, input );
26
}
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition:
StatusCode.h:88
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:51
Gaudi::Parsers::SkipperGrammar
Definition:
Grammar.h:43
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition:
StatusCode.h:87
std::pair
std::string::begin
T begin(T...args)
gaudirun.g
dictionary g
Definition:
gaudirun.py:439
Gaudi::Parsers::KeyValueGrammar
Definition:
GrammarsV2.h:590
GaudiKernel
src
Lib
ParsersStandardMisc5.cpp
Generated on Wed Aug 1 2018 23:21:10 for The Gaudi Framework by
1.8.11