2 #ifndef GAUDIPROPERTYPARSERS_PARSERS_H 3 #define GAUDIPROPERTYPARSERS_PARSERS_H 1 20 #define PARSERS_DECL_FOR_SINGLE( Type ) GAUDI_API StatusCode parse( Type& result, const std::string& input ); 22 #define PARSERS_DECL_FOR_PAIR( FirstType, SecondType ) \ 23 GAUDI_API StatusCode parse( std::pair<FirstType, SecondType>& result, const std::string& input ); 25 #define PARSERS_DECL_FOR_LIST( InnerType ) \ 26 GAUDI_API StatusCode parse( std::vector<InnerType>& result, const std::string& input ); 419 template <
typename K,
typename V,
typename M>
422 return parse( (M&)result, input );
493 template <
class T,
unsigned int N>
503 if ( N != tmp.size() ) {
507 std::copy( tmp.begin(), tmp.end(), result );
519 template <
unsigned int N>
530 if ( N == tmp.
size() ) {
532 }
else if ( N + 2 == tmp.
size() && (
'\'' == tmp[0] ||
'\"' == tmp[0] ) && ( tmp[0] == tmp[tmp.
size() - 1] ) ) {
547 #endif // GAUDIPROPERTYPARSERS_PARSERS_H #define PARSERS_DECL_FOR_PAIR(FirstType, SecondType)
constexpr static const auto FAILURE
Extension of the STL map.
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
#define PARSERS_DECL_FOR_SINGLE(Type)
This class is used for returning status codes from appropriate routines.
#define PARSERS_DECL_FOR_LIST(InnerType)
Simple helper class for description of 1D-histogram The class is targeted to act as the primary "hist...
constexpr static const auto SUCCESS
Helper functions to set/get the application return code.