Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework
v38r0 (2143aa4c)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
a
c
d
e
f
i
l
m
n
o
p
q
r
s
t
v
Enumerator
a
b
c
d
e
f
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Properties
Related Functions
:
a
b
c
d
e
g
h
i
m
o
p
r
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
_
b
c
e
f
g
h
i
l
m
n
o
p
r
s
t
u
z
Variables
a
b
c
d
e
g
h
i
m
o
p
r
s
t
v
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
Enumerations
Enumerator
c
e
f
p
u
v
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
ParsersStandardSingle.cpp
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2023 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
\***********************************************************************************/
17
#ifndef __clang__
18
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
19
#endif
20
// ============================================================================
21
// Include files
22
// ============================================================================
23
#include <
Gaudi/Parsers/CommonParsers.h
>
24
#include <
Gaudi/Parsers/Factory.h
>
25
// ============================================================================
26
// STD & STL
27
// ============================================================================
28
#include <map>
29
#include <set>
30
#include <string>
31
#include <vector>
32
// ============================================================================
33
// ============================================================================
34
#define PARSERS_DEF_FOR_SINGLE( Type ) \
35
StatusCode Gaudi::Parsers::parse( Type& result, const std::string& input ) { \
36
return Gaudi::Parsers::parse_( result, input ); \
37
}
38
// ============================================================================
39
PARSERS_DEF_FOR_SINGLE
(
bool
)
40
PARSERS_DEF_FOR_SINGLE
(
char
)
41
PARSERS_DEF_FOR_SINGLE
(
unsigned
char
)
42
PARSERS_DEF_FOR_SINGLE
(
signed
char
)
43
PARSERS_DEF_FOR_SINGLE
(
int
)
44
PARSERS_DEF_FOR_SINGLE
(
short
)
45
PARSERS_DEF_FOR_SINGLE
(
unsigned
short
)
46
PARSERS_DEF_FOR_SINGLE
(
unsigned
int
)
47
PARSERS_DEF_FOR_SINGLE
(
long
)
48
PARSERS_DEF_FOR_SINGLE
(
unsigned
long
)
49
PARSERS_DEF_FOR_SINGLE
(
long
long
)
50
PARSERS_DEF_FOR_SINGLE
(
unsigned
long
long
)
51
PARSERS_DEF_FOR_SINGLE
(
double
)
52
#if BOOST_VERSION <= 105500
53
PARSERS_DEF_FOR_SINGLE
(
float
)
54
#else
55
// See GAUDI-1121.
56
StatusCode
Gaudi::Parsers::parse
(
float
& result,
const
std::string
& input ) {
57
double
tmp{ 0 };
58
StatusCode
sc =
Gaudi::Parsers::parse_
( tmp, input );
59
result =
static_cast<
float
>
( tmp );
60
return
sc;
61
}
62
#endif
63
PARSERS_DEF_FOR_SINGLE
(
long
double
)
64
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)
@fixme workaround for a warning in a Boost spirit header
Definition:
ParsersStandardSingle.cpp:34
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 Thu Jan 25 2024 17:52:23 for The Gaudi Framework by
1.8.18