2 #ifndef GAUDIPROPERTYPARSERS_PARSERS_H
3 #define GAUDIPROPERTYPARSERS_PARSERS_H 1
16 #include "GaudiKernel/StatusCode.h"
17 #include "GaudiKernel/HistoDef.h"
19 #define PARSERS_DECL_FOR_SINGLE(Type)\
20 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,\
24 const std::string& input);
26 #define PARSERS_DECL_FOR_LIST(InnerType)\
27 GAUDI_API StatusCode parse(std::vector<InnerType>& result,\
28 const std::string& input);
222 const
std::
string& input ) ;
239 const
std::
string& input ) ;
257 const
std::
string& input ) ;
273 const
std::
string& input ) ;
290 (
std::
map<
int ,
int >& result ,
291 const
std::
string& input ) ;
307 (
std::
map<
int ,
double >& result ,
308 const
std::
string& input ) ;
324 const
std::
string& input ) ;
340 (
std::
map<
std::
string ,
int >& result ,
341 const
std::
string& input ) ;
357 (
std::
map<
std::
string ,
double >& result ,
358 const
std::
string& input ) ;
377 const
std::
string& input ) ;
396 const
std::
string& input ) ;
415 const
std::
string& input ) ;
426 const
std::
string& input ) ;
436 (
std::
map<
unsigned int,
std::
string>& result ,
437 const
std::
string& input ) ;
444 (
std::
map<
std::
string,
unsigned int>& result ,
445 const
std::
string& input ) ;
474 (
std::
string& name ,
476 const
std::
string& input ) ;
487 (
Gaudi::Histo1DDef& histo ,
488 const
std::
string& input ) ;
500 const
std::
string& input ) ;
514 (
std::
map<
std::
string,
std::pair<
double,
double> >& params ,
515 const
std::
string& input ) ;
524 template <
class T,
unsigned int N>
527 typedef std::vector<T> _Vct ;
534 std::copy ( tmp.begin() , tmp.end() , result ) ;
546 template <
unsigned int N>
550 std::fill_n ( result , N ,
' ' ) ;
555 if ( N == tmp.size() )
556 { std::copy ( tmp.begin() , tmp.end() , result ) ; }
557 else if ( N + 2 == tmp.size() &&
558 (
'\'' == tmp[0] ||
'\"' == tmp[0] ) &&
559 ( tmp[0] == tmp[tmp.size()-1] ))
560 { std::copy ( tmp.begin() + 1 , tmp.end() -1 , result ) ; }
572 #endif //GAUDIPROPERTYPARSERS_PARSERS_H