The Gaudi Framework
v36r9p1 (5c15b2bb)
ParsersStandardSingle.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
\***********************************************************************************/
11
// ============================================================================
12
// Include files
13
// ============================================================================
14
#include <
Gaudi/Parsers/CommonParsers.h
>
15
#include <
Gaudi/Parsers/Factory.h
>
16
// ============================================================================
17
// STD & STL
18
// ============================================================================
19
#include <map>
20
#include <set>
21
#include <string>
22
#include <vector>
23
// ============================================================================
24
// ============================================================================
25
#define PARSERS_DEF_FOR_SINGLE( Type ) \
26
StatusCode Gaudi::Parsers::parse( Type& result, const std::string& input ) { \
27
return Gaudi::Parsers::parse_( result, input ); \
28
}
29
// ============================================================================
30
PARSERS_DEF_FOR_SINGLE
(
bool
)
31
PARSERS_DEF_FOR_SINGLE
(
char
)
32
PARSERS_DEF_FOR_SINGLE
(
unsigned
char
)
33
PARSERS_DEF_FOR_SINGLE
(
signed
char
)
34
PARSERS_DEF_FOR_SINGLE
(
int
)
35
PARSERS_DEF_FOR_SINGLE
(
short
)
36
PARSERS_DEF_FOR_SINGLE
(
unsigned
short
)
37
PARSERS_DEF_FOR_SINGLE
(
unsigned
int
)
38
PARSERS_DEF_FOR_SINGLE
(
long
)
39
PARSERS_DEF_FOR_SINGLE
(
unsigned
long
)
40
PARSERS_DEF_FOR_SINGLE
(
long
long
)
41
PARSERS_DEF_FOR_SINGLE
(
unsigned
long
long
)
42
PARSERS_DEF_FOR_SINGLE
(
double
)
43
#if BOOST_VERSION <= 105500
44
PARSERS_DEF_FOR_SINGLE
(
float
)
45
#else
46
// See GAUDI-1121.
47
StatusCode
Gaudi::Parsers::parse
(
float
& result,
const
std::string
& input ) {
48
double
tmp{ 0 };
49
StatusCode
sc =
Gaudi::Parsers::parse_
( tmp, input );
50
result =
static_cast<
float
>
( tmp );
51
return
sc;
52
}
53
#endif
54
PARSERS_DEF_FOR_SINGLE
(
long
double
)
55
PARSERS_DEF_FOR_SINGLE
(
std::string
)
std::string
STL class.
StatusCode
Definition:
StatusCode.h:65
Gaudi::Parsers::parse_
StatusCode parse_(ResultT &result, const std::string &input)
Definition:
Factory.h:39
Factory.h
PARSERS_DEF_FOR_SINGLE
#define PARSERS_DEF_FOR_SINGLE(Type)
Definition:
ParsersStandardSingle.cpp:25
CommonParsers.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:21
GaudiKernel
src
Lib
ParsersStandardSingle.cpp
Generated on Fri Feb 3 2023 18:02:58 for The Gaudi Framework by
1.8.18