| The Gaudi Framework v29r1 (5cd95fa2)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

ParsersStandardSingle.cpp
Go to the documentation of this file.
1 // ============================================================================
2 // Include files
3 // ============================================================================
4 #include "GaudiKernel/Parsers.h"
5 #include "GaudiKernel/ParsersFactory.h"
6 // ============================================================================
7 // STD & STL
8 // ============================================================================
9 #include <map>
10 #include <set>
11 #include <string>
12 #include <vector>
13 // ============================================================================
14 // ============================================================================
15 #define PARSERS_DEF_FOR_SINGLE( Type ) \
16 StatusCode Gaudi::Parsers::parse( Type& result, const std::string& input ) \
17 { \
18 return Gaudi::Parsers::parse_( result, input ); \
19 }
20 // ============================================================================
21 PARSERS_DEF_FOR_SINGLE( bool )
22 PARSERS_DEF_FOR_SINGLE( char )
23 PARSERS_DEF_FOR_SINGLE( unsigned char )
24 PARSERS_DEF_FOR_SINGLE( signed char )
25 PARSERS_DEF_FOR_SINGLE( int )
26 PARSERS_DEF_FOR_SINGLE( short )
27 PARSERS_DEF_FOR_SINGLE( unsigned short )
28 PARSERS_DEF_FOR_SINGLE( unsigned int )
29 PARSERS_DEF_FOR_SINGLE( long )
30 PARSERS_DEF_FOR_SINGLE( unsigned long )
31 PARSERS_DEF_FOR_SINGLE( long long )
32 PARSERS_DEF_FOR_SINGLE( unsigned long long )
33 PARSERS_DEF_FOR_SINGLE( double )
34 #if BOOST_VERSION <= 105500
35 PARSERS_DEF_FOR_SINGLE( float )
36 #else
37 // See GAUDI-1121.
38 StatusCode Gaudi::Parsers::parse( float& result, const std::string& input )
39 {
40 double tmp{0};
41 StatusCode sc = Gaudi::Parsers::parse_( tmp, input );
42 result = static_cast<float>( tmp );
43 return sc;
44 }
45 #endif
46 PARSERS_DEF_FOR_SINGLE( long double )
47 PARSERS_DEF_FOR_SINGLE( std::string )
Gaudi::Parsers::parse_
StatusCode parse_(ResultT &result, const std::string &input)
Definition: ParsersFactory.h:33
Parsers.h
The declaration of major parsing functions used e.g for (re)implementation of new extended properties...
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:13
ParsersFactory.h
std::string
STL class.
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
PARSERS_DEF_FOR_SINGLE
#define PARSERS_DEF_FOR_SINGLE(Type)
Definition: ParsersStandardSingle.cpp:15