Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v38r0 (2143aa4c)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ParsersStandardMisc5.cpp
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
12 
14  return Gaudi::Parsers::parse_( result, input );
15 }
16 
18  Skipper skipper;
21  auto iter = input.begin();
22  bool parse_result = qi::phrase_parse( iter, input.end(), g, skipper, result ) && ( iter == input.end() );
23  if ( parse_result ) {
24  name = result.first;
25  value = result.second;
26  return StatusCode::SUCCESS;
27  }
28  return StatusCode::FAILURE;
29 }
30 
32  return Gaudi::Parsers::parse_( result, input );
33 }
Gaudi::Parsers::KeyValueGrammar
Definition: Grammars.h:580
std::string
STL class.
bug_34121.name
name
Definition: bug_34121.py:20
std::pair< std::string, std::string >
ParsersStandardMiscCommon.h
StatusCode
Definition: StatusCode.h:65
gaudirun.g
dictionary g
Definition: gaudirun.py:579
Gaudi::Parsers::parse_
StatusCode parse_(ResultT &result, const std::string &input)
Definition: Factory.h:39
Gaudi::Parsers::SkipperGrammar
Definition: Grammar.h:51
std::map< unsigned int, std::string >
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition: StatusCode.h:100
std::string::begin
T begin(T... args)
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:21
std::string::end
T end(T... args)
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition: StatusCode.h:101