The Gaudi Framework  master (37c0b60a)
ParsersStandardSet.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 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 #ifndef PARSERS_STANDARD_SET_COMMON_H
12 #define PARSERS_STANDARD_SET_COMMON_H 1
13 // ============================================================================
14 // Include files
15 // ============================================================================
17 #include <Gaudi/Parsers/Factory.h>
18 // ============================================================================
19 // STD & STL
20 // ============================================================================
21 #include <set>
22 #include <string_view>
23 #include <unordered_set>
24 // ============================================================================
25 // ============================================================================
26 #define PARSERS_DEF_FOR_SET( InnerType ) \
27  StatusCode Gaudi::Parsers::parse( std::set<InnerType>& result, std::string_view input ) { \
28  return Gaudi::Parsers::parse_( result, input ); \
29  } \
30  StatusCode Gaudi::Parsers::parse( std::unordered_set<InnerType>& result, std::string_view input ) { \
31  return Gaudi::Parsers::parse_( result, input ); \
32  }
33 // ============================================================================
34 #endif /* PARSERS_STANDARD_LIST_COMMON_H */
Factory.h
CommonParsers.h