The Gaudi Framework
v36r16 (ea80daf8)
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
r
s
t
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
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-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 Jul 28 2023 16:22:57 for The Gaudi Framework by
1.8.18