1 #ifndef GAUDIKERNEL_GENVCTPARSERS_H
2 #define GAUDIKERNEL_GENVCTPARSERS_H 1
13 #include "GaudiKernel/Parsers.h"
17 #include "Math/SVector.h"
43 template <
class SCALAR,
unsigned int N>
45 ( ROOT::Math::SVector<SCALAR,N>& result ,
46 const std::string& input )
48 std::vector<double> tmp ;
57 #pragma warning(disable:4996)
59 std::copy ( tmp.begin() , tmp.end() , result.begin() ) ;
76 template <
class SCALAR>
77 std::ostream&
toStream (
const SCALAR& , std::ostream& ) ;
83 template <
class SCALAR,
unsigned int N>
85 (
const ROOT::Math::SVector<SCALAR,N>& obj , std::ostream&
s )
88 for (
typename ROOT::Math::SVector<SCALAR,N>::const_iterator cur = obj.begin() ;
89 obj.end() != cur ; ++cur )
91 if ( obj.begin() != cur ) { s <<
" , "; }
103 #endif // GAUDIKERNEL_GENVCTPARSERS_H
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
bool isFailure() const
Test for a status code of FAILURE.
std::ostream & toStream(ITERATOR first, ITERATOR last, std::ostream &s, const std::string &open, const std::string &close, const std::string &delim)
the helper function to print the sequence
This class is used for returning status codes from appropriate routines.
Helper functions to set/get the application return code.