The Gaudi Framework  v33r1 (b1225454)
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 }
StatusCode parse_(ResultT &result, const std::string &input)
Definition: Factory.h:39
constexpr static const auto SUCCESS
Definition: StatusCode.h:100
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
T end(T... args)
STL class.
STL class.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:61
T begin(T... args)
dictionary g
Definition: gaudirun.py:542
constexpr static const auto FAILURE
Definition: StatusCode.h:101