| The Gaudi Framework v27r1

- 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 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 auto 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 }
Gaudi::Parsers::parse_
StatusCode parse_(ResultT &result, const std::string &input)
Definition: ParsersFactory.h:31
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:28
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:11
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:26
dump_component_properties.value
list value
Definition: dump_component_properties.py:12
Gaudi::Parsers::SkipperGrammar
Definition: Grammar.h:45
std::pair
std::string::begin
T begin(T...args)
gaudirun.g
dictionary g
Definition: gaudirun.py:420
Gaudi::Parsers::KeyValueGrammar
Definition: GrammarsV2.h:666