The Gaudi Framework
master (1a7a3838)
Toggle main menu visibility
Loading...
Searching...
No Matches
StdArrayAsProperty.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2025 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
\***********************************************************************************/
11
#pragma once
12
13
#include <
GaudiKernel/ToStream.h
>
14
#include <algorithm>
15
#include <array>
16
28
#include <
Gaudi/Parsers/CommonParsers.h
>
29
namespace
Gaudi
{
30
namespace
Parsers
{
38
template
<
class
TYPE, std::
size_t
N>
39
StatusCode
parse
( std::array<TYPE, N>& result, std::string_view input ) {
40
std::vector<TYPE> tmp;
41
StatusCode
sc =
parse
( tmp, input );
42
if
( sc.
isFailure
() )
return
sc;
43
if
( N != tmp.size() )
return
StatusCode::FAILURE
;
44
std::copy( tmp.begin(), tmp.end(), result.begin() );
45
return
StatusCode::SUCCESS
;
46
}
47
}
// namespace Parsers
48
}
// namespace Gaudi
CommonParsers.h
The declaration of major parsing functions used e.g for (re)implementation of new extended properties...
ToStream.h
implementation of various functions for streaming.
StatusCode
This class is used for returning status codes from appropriate routines.
Definition
StatusCode.h:64
StatusCode::isFailure
bool isFailure() const
Definition
StatusCode.h:118
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition
StatusCode.h:99
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition
StatusCode.h:100
Gaudi::Parsers
Definition
DODBasicMapper.cpp:17
Gaudi::Parsers::parse
StatusCode parse(GaudiUtils::HashMap< K, V > &result, std::string_view input)
Basic parser for the types of HashMap used in DODBasicMapper.
Definition
DODBasicMapper.cpp:21
Gaudi
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition
__init__.py:1
GaudiKernel
include
GaudiKernel
StdArrayAsProperty.h
Generated on
for The Gaudi Framework by
1.17.0