2 #ifndef GAUDIPROPERTYPARSERS_PARSERS_H 3 #define GAUDIPROPERTYPARSERS_PARSERS_H 1 20 #define PARSERS_DECL_FOR_SINGLE(Type)\ 21 GAUDI_API StatusCode parse(Type& result, const std::string& input); 23 #define PARSERS_DECL_FOR_PAIR(FirstType, SecondType)\ 24 GAUDI_API StatusCode parse(std::pair<FirstType, SecondType >& result,\ 25 const std::string& input); 27 #define PARSERS_DECL_FOR_LIST(InnerType)\ 28 GAUDI_API StatusCode parse(std::vector<InnerType>& result,\ 29 const std::string& input); 452 template <
typename K,
typename V,
typename M>
456 return parse((M&)result, input);
536 template <
class T,
unsigned int N>
546 std::copy ( tmp.begin() , tmp.end() , result ) ;
558 template <
unsigned int N>
567 if ( N == tmp.
size() )
569 else if ( N + 2 == tmp.
size() &&
570 (
'\'' == tmp[0] ||
'\"' == tmp[0] ) &&
571 ( tmp[0] == tmp[tmp.
size()-1] ))
584 #endif //GAUDIPROPERTYPARSERS_PARSERS_H
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_LIST(InnerType)
#define PARSERS_DECL_FOR_SINGLE(Type)
bool isFailure() const
Test for a status code of FAILURE.
This class is used for returning status codes from appropriate routines.
Simple helper class for description of 1D-histogram The class is targeted to act as the primary "hist...
Helper functions to set/get the application return code.
#define PARSERS_DECL_FOR_PAIR(FirstType, SecondType)