All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Gaudi::Parsers Namespace Reference

Namespaces

 Utils
 

Classes

struct  AttributesClosureGrammar
 Grammar or grammar rule which derive from this struct will have two attributes: type T1 and name val, type T2 and name attrs More...
 
class  BoolGrammar
 The valid represenation of boolean values are: More...
 
class  Catalog
 
class  CharGrammar
 The valid represenation of char values are: More...
 
struct  ClosureGrammar
 Grammar or grammar rule which derive from this struct will have attribute of type T and name val More...
 
class  EdgeGrammar
 
struct  FileGrammar
 
struct  Grammar_
 
struct  Grammar_< Iterator, GaudiUtils::VectorMap< KeyT, ValueT, KeyCompareT, AllocatorT >, Skipper >
 
struct  Grammar_< Iterator, ROOT::Math::DisplacementVector3D< T1, T2 >, Skipper >
 
struct  Grammar_< Iterator, ROOT::Math::LorentzVector< T1 >, Skipper >
 
struct  Grammar_< Iterator, ROOT::Math::PositionVector3D< T1, T2 >, Skipper >
 
struct  Grammar_< Iterator, std::list< InnerT, AllocatorT >, Skipper >
 
struct  Grammar_< Iterator, std::map< KeyT, ValueT, KeyCompareT, AllocatorT >, Skipper >
 
struct  Grammar_< Iterator, std::pair< KeyT, ValueT >, Skipper >
 
struct  Grammar_< Iterator, std::set< InnerT, CompareT, AllocatorT >, Skipper >
 
struct  Grammar_< Iterator, std::vector< InnerT, AllocatorT >, Skipper >
 
struct  Grammar_< Iterator, T, Skipper, typename boost::enable_if< boost::is_floating_point< T > >::type >
 
struct  Grammar_< Iterator, T, Skipper, typename boost::enable_if< boost::is_integral< T > >::type >
 
class  H1Grammar
 
class  H2Grammar
 
struct  Histo1DGrammar
 
struct  IdentifierGrammar
 
class  IncludedFiles
 
class  IntGrammar
 The valid representation of integers values are: More...
 
struct  KeyValueGrammar
 
class  MapGrammar
 The valid represenation of map are: More...
 
class  Messages
 
class  Node
 
class  NodeOperations
 
class  PairGrammar
 The valid represenation of pairs are: ("abc",123) or ("abc","def") Inner types of pair depends on KeyGrammarT and ValueGrammarT grammars. More...
 
struct  Pnt3DGrammar
 
struct  Pnt4DGrammar
 
class  Position
 
class  PositionalPropertyValueException
 
class  PragmaOptions
 
class  Property
 
class  PropertyName
 
class  PropertyValue
 
class  PropertyValueException
 
class  RealGrammar
 The valid represenation of real values are: More...
 
class  SkipperGrammar
 Skipping spaces and comments. More...
 
class  StringGrammar
 The valid represenation of string values are: More...
 
class  Units
 
struct  UnitsGrammar
 
class  VectorGrammar
 The valid represenation of vector are: More...
 

Typedefs

typedef std::string::const_iterator DefaultIterator
 
typedef enc::space_type DefaultSkipper
 
typedef
boost::spirit::position_iterator
< string::const_iterator > 
IteratorT
 the actual type of position iterator More...
 
typedef SkipperGrammar< IteratorTSkipper
 

Functions

template<typename K , typename V >
StatusCode parse (GaudiUtils::HashMap< K, V > &result, const std::string &input)
 Basic parser for the types of HashMap used in DODBasicMapper. More...
 
bool ReadOptions (const std::string &filename, const std::string &search_path, Messages *messages, Catalog *catalog, Units *units, PragmaOptions *pragma, Node *root)
 Parse and analyze filename, save all messages and properties. More...
 
std::ostream & operator<< (std::ostream &o, const Catalog &c)
 printout operator More...
 
bool Parse (const std::string &filename, const std::string &search_path, IncludedFiles *included, Messages *messages, Node *root)
 
bool Parse (const Position &from, const std::string &filename, const std::string &search_path, IncludedFiles *included, Messages *messages, Node *root)
 
bool ParseUnits (const Position &from, const std::string &filename, const std::string &search_path, IncludedFiles *included, Messages *messages, Node *root)
 
template<class TYPE , std::size_t N>
StatusCode parse (boost::array< TYPE, N > &result, const std::string &input)
 parse class boost::array from the string More...
 
 REGISTER_GRAMMAR (std::string, StringGrammar)
 
 REGISTER_GRAMMAR (Gaudi::StringKey, StringGrammar)
 
 REGISTER_GRAMMAR (char, CharGrammar)
 
 REGISTER_GRAMMAR (bool, BoolGrammar)
 
 REGISTER_GRAMMAR (Gaudi::Histo1DDef, Histo1DGrammar)
 
GAUDI_API StatusCode parse (std::vector< std::pair< double, double > > &result, const std::string &input)
 parse the bool value More...
 
GAUDI_API StatusCode parse (std::vector< std::pair< int, int > > &result, const std::string &input)
 parse the std::vector<std::pair<int,int> > value More...
 
GAUDI_API StatusCode parse (std::vector< std::vector< std::string > > &result, const std::string &input)
 parse the std::vector<std::vector<std::string> > value More...
 
GAUDI_API StatusCode parse (std::vector< std::vector< double > > &result, const std::string &input)
 parse the std::vector<std::vector<double> > value More...
 
GAUDI_API StatusCode parse (std::map< int, int > &result, const std::string &input)
 parse the std::map<int , int> value More...
 
GAUDI_API StatusCode parse (std::map< int, double > &result, const std::string &input)
 parse the std::map<int , double> value More...
 
GAUDI_API StatusCode parse (std::map< std::string, std::string > &result, const std::string &input)
 parse the std::map<std::string , std::string> value More...
 
GAUDI_API StatusCode parse (std::map< std::string, int > &result, const std::string &input)
 parse the std::map<std::string , int> value More...
 
GAUDI_API StatusCode parse (std::map< std::string, double > &result, const std::string &input)
 parse the std::map<std::string , double> value More...
 
GAUDI_API StatusCode parse (std::map< std::string, std::vector< std::string > > &result, const std::string &input)
 parse the std::map<std::string , std::vector<std::string> > value More...
 
GAUDI_API StatusCode parse (std::map< std::string, std::vector< int > > &result, const std::string &input)
 parse the std::map<std::string , std::vector<int> > value More...
 
GAUDI_API StatusCode parse (std::map< std::string, std::vector< double > > &result, const std::string &input)
 parse the std::map<std::string , std::vector<double> > value More...
 
GAUDI_API StatusCode parse (std::map< int, std::string > &result, const std::string &input)
 parse the std::map<int,std::string> > objects More...
 
GAUDI_API StatusCode parse (std::map< unsigned int, std::string > &result, const std::string &input)
 parse the std::map<unsigned int,std::string> > objects More...
 
GAUDI_API StatusCode parse (std::map< std::string, unsigned int > &result, const std::string &input)
 parse the std::map<unsigned int,std::string> > objects More...
 
GAUDI_API StatusCode parse (std::string &name, std::string &value, const std::string &input)
 parse the pair expression (map-component) " 'name' :value" More...
 
GAUDI_API StatusCode parse (Gaudi::Histo1DDef &histo, const std::string &input)
 helper function, needed for implementation of "Histogram Property" More...
 
GAUDI_API StatusCode parse (std::map< std::string, Gaudi::Histo1DDef > &histos, const std::string &input)
 helper function, needed for implementation of "Histogram Property" More...
 
GAUDI_API StatusCode parse (std::map< std::string, std::pair< double, double > > &params, const std::string &input)
 helper function, needed for implementation of map of pairs It is very useful construction for monitoring to represent the value and error or the allowed range for some parameter More...
 
template<class T , unsigned int N>
StatusCode parse (T(&result)[N], const std::string &input)
 parser function for C-arrays More...
 
template<unsigned int N>
StatusCode parse (char(&result)[N], const std::string &input)
 parser function for C-strings More...
 
IteratorT createIterator (const std::string &input)
 create the position iterator from the input More...
 
template<typename IntegerT >
StatusCode parse_integer (IntegerT &result, const string &input)
 helper function to "merge" the implementation of all parsers for integer-like quantities into one templated grammar More...
 
template<typename IntegerT >
StatusCode parse_integer_vector (std::vector< IntegerT > &result, const string &input)
 helper function to "merge" the implementation of all parsers for vector of integer-like quantities into the combination of templated grammars More...
 
template<typename CharT >
StatusCode parse_char (CharT &result, const string &input)
 helper function to "merge" the implementation of all parsers for "char-like" quantities into one templated grammar More...
 
template<typename CharT >
StatusCode parse_char_vector (std::vector< CharT > &result, const string &input)
 helper function to "merge" the implementation of all parsers for vector of 'char-like' quantities into the combination of templated grammars More...
 
template<typename RealT >
StatusCode parse_real (RealT &result, const string &input)
 helper function to "merge" the implementation of all parsers for "float-like" quantities into one templated grammar More...
 
template<typename RealT >
StatusCode parse_real_vector (std::vector< RealT > &result, const string &input)
 helper function to "merge" the implementation of all parsers for vector of 'char-like' quantities into the combination of templated grammars More...
 
template<typename ResultT >
StatusCode parse_ (ResultT &result, const std::string &input)
 
template<>
StatusCode parse_ (std::string &result, const std::string &input)
 
GAUDI_API StatusCode parse (Gaudi::StringKey &result, const std::string &input)
 parse the key from the string More...
 
GAUDI_API StatusCode parse (std::vector< Gaudi::StringKey > &result, const std::string &input)
 parse the vector of keys from the string More...
 
template<class SCALAR , unsigned int N>
StatusCode parse (ROOT::Math::SVector< SCALAR, N > &result, const std::string &input)
 parse SVector More...
 
GAUDI_API StatusCode parse (GaudiUtils::VectorMap< std::string, double > &result, const std::string &input)
 parse the key from the string More...
 
GAUDI_API StatusCode parse (GaudiUtils::VectorMap< Gaudi::StringKey, double > &result, const std::string &input)
 parse the vector of keys from the string More...
 
GAUDI_API StatusCode parse (Gaudi::XYZPoint &result, const std::string &input)
 parse 3D-point More...
 
GAUDI_API StatusCode parse (Gaudi::XYZVector &result, const std::string &input)
 parse 3D-vector More...
 
GAUDI_API StatusCode parse (Gaudi::LorentzVector &result, const std::string &input)
 parse LorentzVector More...
 
GAUDI_API StatusCode parse (std::vector< Gaudi::XYZPoint > &result, const std::string &input)
 parse the vector of points More...
 
GAUDI_API StatusCode parse (std::vector< Gaudi::XYZVector > &result, const std::string &input)
 parse the vector of vectors More...
 
GAUDI_API StatusCode parse (std::vector< Gaudi::LorentzVector > &result, const std::string &input)
 parse the vector of vectors More...
 
template<typename T1 , typename T2 >
StatusCode parse_ (ROOT::Math::PositionVector3D< T1, T2 > &result, const std::string &input)
 
GAUDI_API StatusCode parse (TH1D &result, const std::string &input)
 parse ROOT histogram from text representation More...
 
GAUDI_API StatusCode parse (TH2D &result, const std::string &input)
 parse ROOT histogram from text representation More...
 
GAUDI_API StatusCode parse (TH1F &result, const std::string &input)
 parse ROOT histogram from text representation More...
 
GAUDI_API StatusCode parse (TH2F &result, const std::string &input)
 parse ROOT histogram from text representation More...
 
GAUDI_API StatusCode parse (AIDA::IHistogram1D &result, const std::string &input)
 parse AIDA histogram from text representation More...
 
GAUDI_API StatusCode parse (AIDA::IHistogram2D &result, const std::string &input)
 parse AIDA histogram from text representation More...
 
GAUDI_API StatusCode parse (TH1D *&result, const std::string &input)
 parse ROOT histogram from text representation More...
 
GAUDI_API StatusCode parse (TH2D *&result, const std::string &input)
 parse ROOT histogram from text representation More...
 
 REGISTER_GRAMMAR (Edges, EdgeGrammar)
 
 REGISTER_GRAMMAR (H1, H1Grammar)
 
 REGISTER_GRAMMAR (H2, H2Grammar)
 

Typedef Documentation

typedef std::string::const_iterator Gaudi::Parsers::DefaultIterator

Definition at line 53 of file GrammarsV2.h.

typedef enc::space_type Gaudi::Parsers::DefaultSkipper

Definition at line 54 of file GrammarsV2.h.

typedef std::string::const_iterator Gaudi::Parsers::IteratorT

the actual type of position iterator

Definition at line 64 of file Parsers.icpp.

typedef SkipperGrammar<IteratorT> Gaudi::Parsers::Skipper

Definition at line 28 of file ParsersFactory.h.

Function Documentation

IteratorT Gaudi::Parsers::createIterator ( const std::string &  input)
inline

create the position iterator from the input

Definition at line 67 of file Parsers.icpp.

68  { return IteratorT ( input.begin(), input.end() ) ; }
boost::spirit::position_iterator< string::const_iterator > IteratorT
the actual type of position iterator
Definition: Parsers.icpp:64
std::ostream& Gaudi::Parsers::operator<< ( std::ostream &  o,
const Catalog &  c 
)
inline

printout operator

Definition at line 57 of file Catalog.h.

57  {
58  return c.fillStream(o);
59  }
tuple c
Definition: gaudirun.py:341
template<typename K , typename V >
StatusCode Gaudi::Parsers::parse ( GaudiUtils::HashMap< K, V > &  result,
const std::string &  input 
)

Basic parser for the types of HashMap used in DODBasicMapper.

Delegates to the parser of map<string,string>.

Definition at line 11 of file DODBasicMapper.cpp.

11  {
12  std::map<std::string, std::string> tmp;
13  StatusCode sc = parse(tmp, input);
14  if (sc.isSuccess()) {
15  result.clear();
16  result.insert(tmp.begin(), tmp.end());
17  }
18  return sc;
19  }
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:62
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
std::pair< iterator, bool > insert(const value_type &val)
Definition: Map.h:165
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
void clear()
Definition: Map.h:176
bool Gaudi::Parsers::Parse ( const std::string &  filename,
const std::string &  search_path,
IncludedFiles *  included,
Messages *  messages,
Node *  root 
)

Definition at line 127 of file Parser.cpp.

129  {
130  return Parse(Position(), filename, search_path, included, messages,
131  root);
132 }
bool Parse(const std::string &filename, const std::string &search_path, IncludedFiles *included, Messages *messages, Node *root)
Definition: Parser.cpp:127
tuple root
Definition: IOTest.py:42
bool Gaudi::Parsers::Parse ( const Position &  from,
const std::string &  filename,
const std::string &  search_path,
IncludedFiles *  included,
Messages *  messages,
Node *  root 
)

Definition at line 134 of file Parser.cpp.

137  {
138  typedef FileGrammar<Iterator,SkipperGrammar<Iterator> > Grammar;
139  return ParseFile<Grammar>(from, filename, search_path, included,
140  messages, root);
141 }
tuple root
Definition: IOTest.py:42
StatusCode Gaudi::Parsers::parse ( TH1D &  result,
const std::string &  input 
)

parse ROOT histogram from text representation

Parameters
result(OUTPUT) the histogram
input(INPUT) the input to be parsed
Returns
status code

Definition at line 344 of file HistoParsers.cpp.

345 {
346  // 1) check the parsing
347  std::string name ;
348  //
349  std::auto_ptr<TH1D> h1 = _parse_1D<TH1D> ( input , name ) ;
350  if ( 0 != h1.get() )
351  {
352  result.Reset() ;
353  h1->Copy ( result ) ; // ASSIGN
354  result.SetName ( name.c_str () ) ;
355  return StatusCode::SUCCESS ; // RETURN
356  }
357  //
358  // XML-like text?
359  if ( std::string::npos != input.find('<') )
360  { return Gaudi::Utils::Histos::fromXml ( result , input ) ; }
361  //
362  return StatusCode::FAILURE ;
363 }
GAUDI_API StatusCode fromXml(TH1D &result, const std::string &input)
parse the histogram from standard ROOT XML
Definition: HistoXML.cpp:297
template<class SCALAR , unsigned int N>
StatusCode Gaudi::Parsers::parse ( ROOT::Math::SVector< SCALAR, N > &  result,
const std::string &  input 
)

parse SVector

Parameters
result(output) the parsed vector
input(input) the input string
Returns
status code
Author
Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl
Date
2009-09-05

Definition at line 47 of file SVectorAsProperty.h.

49  {
50  std::vector<double> tmp ;
51  StatusCode sc = parse ( tmp , input ) ;
52  if ( sc.isFailure() ) { return sc ; } // RETURN
53  if ( N != tmp.size() ) { return StatusCode::FAILURE ; } // RETURN
54 #ifdef WIN32
55 // Disable warning
56 // C4996: 'std::copy': Function call with parameters that may be unsafe
57 // The parameters are checked
58 #pragma warning(push)
59 #pragma warning(disable:4996)
60 #endif
61  std::copy ( tmp.begin() , tmp.end() , result.begin() ) ;
62 #ifdef WIN32
63 #pragma warning(pop)
64 #endif
65  return StatusCode::SUCCESS ;
66  }
StatusCode parse(ROOT::Math::SVector< SCALAR, N > &result, const std::string &input)
parse SVector
bool isFailure() const
Test for a status code of FAILURE.
Definition: StatusCode.h:72
int N
Definition: IOTest.py:90
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
StatusCode Gaudi::Parsers::parse ( TH2D &  result,
const std::string &  input 
)

parse ROOT histogram from text representation

Parameters
result(OUTPUT) the histogram
input(INPUT) the input to be parsed
Returns
status code

Definition at line 400 of file HistoParsers.cpp.

401 {
402  // 1) check the parsing
403  std::string name ;
404  std::auto_ptr<TH2D> h2 = _parse_2D<TH2D> ( input , name ) ;
405  if ( 0 != h2.get() )
406  {
407  result.Reset() ;
408  h2->Copy ( result ) ; // ASSIGN
409  result.SetName ( name.c_str () ) ;
410  return StatusCode::SUCCESS ; // RETURN
411  }
412  //
413  // XML-like text?
414  if ( std::string::npos != input.find('<') )
415  { return Gaudi::Utils::Histos::fromXml ( result , input ) ; }
416  //
417  return StatusCode::FAILURE ;
418 }
GAUDI_API StatusCode fromXml(TH1D &result, const std::string &input)
parse the histogram from standard ROOT XML
Definition: HistoXML.cpp:297
tuple h2
Definition: Test.py:42
StatusCode Gaudi::Parsers::parse ( TH1F &  result,
const std::string &  input 
)

parse ROOT histogram from text representation

Parameters
result(OUTPUT) the histogram
input(INPUT) the input to be parsed
Returns
status code

Definition at line 372 of file HistoParsers.cpp.

373 {
374  // 1) check the parsing
375  std::string name ;
376  //
377  std::auto_ptr<TH1F> h1 = _parse_1D<TH1F> ( input , name ) ;
378  if ( 0 != h1.get() )
379  {
380  result.Reset() ;
381  h1->Copy ( result ) ; // ASSIGN
382  result.SetName ( name.c_str () ) ;
383  return StatusCode::SUCCESS ; // RETURN
384  }
385  //
386  // XML-like text?
387  if ( std::string::npos != input.find('<') )
388  { return Gaudi::Utils::Histos::fromXml ( result , input ) ; }
389  //
390  return StatusCode::FAILURE ;
391 }
GAUDI_API StatusCode fromXml(TH1D &result, const std::string &input)
parse the histogram from standard ROOT XML
Definition: HistoXML.cpp:297
StatusCode Gaudi::Parsers::parse ( TH2F &  result,
const std::string &  input 
)

parse ROOT histogram from text representation

Parameters
result(OUTPUT) the histogram
input(INPUT) the input to be parsed
Returns
status code

Definition at line 427 of file HistoParsers.cpp.

428 {
429  // 1) check the parsing
430  std::string name ;
431  std::auto_ptr<TH2F> h2 = _parse_2D<TH2F> ( input , name ) ;
432  if ( 0 != h2.get() )
433  {
434  result.Reset() ;
435  h2->Copy ( result ) ; // ASSIGN
436  result.SetName ( name.c_str () ) ;
437  return StatusCode::SUCCESS ; // RETURN
438  }
439  //
440  // XML-like text?
441  if ( std::string::npos != input.find('<') )
442  { return Gaudi::Utils::Histos::fromXml ( result , input ) ; }
443  //
444  return StatusCode::FAILURE ;
445 }
GAUDI_API StatusCode fromXml(TH1D &result, const std::string &input)
parse the histogram from standard ROOT XML
Definition: HistoXML.cpp:297
tuple h2
Definition: Test.py:42
StatusCode Gaudi::Parsers::parse ( AIDA::IHistogram1D &  result,
const std::string &  input 
)

parse AIDA histogram from text representation

Parameters
result(OUTPUT) the histogram
input(INPUT) the input to be parsed
Returns
status code

Definition at line 510 of file HistoParsers.cpp.

511 {
512  // 1) convert to ROOT
513  TH1D* root = Gaudi::Utils::Aida2ROOT::aida2root ( &result ) ;
514  if ( 0 == root ) { return StatusCode::FAILURE ; }
515  // 2) read ROOT histogram
516  return parse ( *root , input ) ;
517 }
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
static TH1D * aida2root(AIDA::IHistogram1D *aida)
get the underlying pointer for 1D-histogram
Definition: Aida2ROOT.cpp:55
tuple root
Definition: IOTest.py:42
StatusCode Gaudi::Parsers::parse ( Gaudi::XYZPoint result,
const std::string &  input 
)

parse 3D-point

Valid representations of 3D-point:

- a'la python tuple with 3 elements ("canonical")
- a'la python list with 3 elements 
- tuple or list with named ordered fields 
" (1,2,3) "
" [1,2,3] "
" [ x : 1, 2, Z:3 ] "
" [ pX : 1 , PY : 2, 3] "

Valid keys for names fields:

"x", "X" , "pX" , "Px" , "PX "
"y", "Y" , "pY" , "Py" , "PY "
"z", "Z" , "pZ" , "Pz" , "PZ "
Attention
Named fields must be ordered (x,y,z)
Parameters
result(output) the parsed point
input(input) the input string
Returns
status code
Author
Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl
Date
2009-09-05

Definition at line 50 of file ParsersVct.cpp.

51  {
52  return parse_(result, input);
53  }
StatusCode parse_(ROOT::Math::PositionVector3D< T1, T2 > &result, const std::string &input)
Definition: ParsersVct.cpp:38
StatusCode Gaudi::Parsers::parse ( AIDA::IHistogram2D &  result,
const std::string &  input 
)

parse AIDA histogram from text representation

Parameters
result(OUTPUT) the histogram
input(INPUT) the input to be parsed
Returns
status code

Definition at line 526 of file HistoParsers.cpp.

527 {
528  // 1) convert to ROOT
529  TH2D* root = Gaudi::Utils::Aida2ROOT::aida2root ( &result ) ;
530  if ( 0 == root ) { return StatusCode::FAILURE ; }
531  // 2) read ROOT histogram
532  return parse ( *root , input ) ;
533 }
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
static TH1D * aida2root(AIDA::IHistogram1D *aida)
get the underlying pointer for 1D-histogram
Definition: Aida2ROOT.cpp:55
tuple root
Definition: IOTest.py:42
template<class TYPE , std::size_t N>
StatusCode Gaudi::Parsers::parse ( boost::array< TYPE, N > &  result,
const std::string &  input 
)

parse class boost::array from the string

Parameters
result(OUTPUT) the actual result
input(INPUT) the input string
Returns
status code
Author
Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl
Date
2009-09-16

Definition at line 84 of file BoostArrayAsProperty.h.

85  {
86  typedef std::vector<TYPE> _Vct ;
87  // create the temporaty vector
88  _Vct tmp ;
89  // parse the string
90  StatusCode sc = parse ( tmp , input ) ;
91  if ( sc.isFailure () ) { return sc ; } // RETURN
92  if ( N != tmp.size() )
93  { return StatusCode ( StatusCode::FAILURE , true ) ; } // RETURN
94  // copy vector into array
95  std::copy ( tmp.begin() , tmp.end() , result.begin() ) ;
96  //
97  return StatusCode::SUCCESS ;
98  }
StatusCode parse(boost::array< TYPE, N > &result, const std::string &input)
parse class boost::array from the string
bool isFailure() const
Test for a status code of FAILURE.
Definition: StatusCode.h:72
int N
Definition: IOTest.py:90
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
StatusCode Gaudi::Parsers::parse ( TH1D *&  result,
const std::string &  input 
)

parse ROOT histogram from text representation

Parameters
result(OUTPUT) the histogram
input(INPUT) the input to be parsed
Returns
status code

Definition at line 454 of file HistoParsers.cpp.

455 {
456  if ( 0 != result ) { return parse ( *result , input ) ; } // RETURN
457 
458  // 1) check the parsing
459  std::string name ;
460  std::auto_ptr<TH1D> h1 = _parse_1D<TH1D> ( input , name ) ;
461  if ( 0 != h1.get() )
462  {
463  result = h1.release() ;
464  result->SetName ( name.c_str() ) ;
465  return StatusCode::SUCCESS ; // RETURN
466  }
467  //
468  // XML-like text?
469  if ( std::string::npos != input.find('<') )
470  { return Gaudi::Utils::Histos::fromXml ( result , input ) ; }
471  //
472  return StatusCode::FAILURE ;
473 }
GAUDI_API StatusCode fromXml(TH1D &result, const std::string &input)
parse the histogram from standard ROOT XML
Definition: HistoXML.cpp:297
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
StatusCode Gaudi::Parsers::parse ( TH2D *&  result,
const std::string &  input 
)

parse ROOT histogram from text representation

Parameters
result(OUTPUT) the histogram
input(INPUT) the input to be parsed
Returns
status code

Definition at line 482 of file HistoParsers.cpp.

483 {
484  if ( 0 != result ) { return parse ( *result , input ) ; } // RETURN
485 
486  // 1) check the parsing
487  std::string name ;
488  std::auto_ptr<TH2D> h2 = _parse_2D<TH2D> ( input , name ) ;
489  if ( 0 != h2.get() )
490  {
491  result = h2.release() ;
492  result->SetName ( name.c_str() ) ;
493  return StatusCode::SUCCESS ; // RETURN
494  }
495  //
496  // XML-like text?
497  if ( std::string::npos != input.find('<') )
498  { return Gaudi::Utils::Histos::fromXml ( result , input ) ; }
499  //
500  return StatusCode::FAILURE ;
501 }
GAUDI_API StatusCode fromXml(TH1D &result, const std::string &input)
parse the histogram from standard ROOT XML
Definition: HistoXML.cpp:297
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
tuple h2
Definition: Test.py:42
StatusCode Gaudi::Parsers::parse ( Gaudi::XYZVector result,
const std::string &  input 
)

parse 3D-vector

Valid representations of 3D-vector:

- a'la python tuple with 3 elements ("canonical")
- a'la python list with 3 elements 
- tuple or list with named ordered fields 
" (1,2,3) "
" [1,2,3] "
" [ x : 1, 2, Z:3 ] "
" [ pX : 1 , PY : 2, 3] "

Valid keys for names fields:

"x", "X" , "pX" , "Px" , "PX "
"y", "Y" , "pY" , "Py" , "PY "
"z", "Z" , "pZ" , "Pz" , "PZ "
Attention
Named fields must be ordered (x,y,z)
Parameters
result(output) the parsed vector
input(input) the input string
Returns
status code
Author
Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl
Date
2009-09-05

Definition at line 64 of file ParsersVct.cpp.

66  {
67 
68  Gaudi::XYZPoint point ;
69  StatusCode sc = parse ( point , input ) ;
70  if ( sc.isFailure() ){ return sc ; } // RETURN
71  result = point ;
72  return StatusCode::SUCCESS ; // RETURN
73  }
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.
Definition: StatusCode.h:72
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
StatusCode Gaudi::Parsers::parse ( Gaudi::LorentzVector result,
const std::string &  input 
)

parse LorentzVector

Valid representations of Lorenzt vector

- a'la python tuple with 4 elements ("canonical")
- a'la python list with 4 elements 
- python/list with inner representation of 3D-point/vector
- tuple or list with named ordered fields 
" (1,2,3,4) "
" (1,2,3;4) "
" [1,2,3,4] "
" [1,2,3;4] "
" [ x:1 ,2,3; e= 4] "
" [ pX : 1 , PY : 2, 3 , T= 4] "
" [ ( pX : 1 , PY : 2, 3 ) , 4] "
" [ ( pX : 1 , PY : 2, 3 ) ; 4] "
" [ 4 , ( pX : 1 , PY : 2, 3 ) ] "
" [ 4 ; ( pX : 1 , PY : 2, 3 ) ] "
" [ [ pX : 1 , PY : 2, 3 ] , 4] "
" [ [ pX : 1 , PY : 2, 3 ] ; 4] "
" [ 4 , [ pX : 1 , PY : 2, 3 ] ] "
" [ 4 ; [ pX : 1 , PY : 2, 3 ] ] "
" ( ( pX : 1 , PY : 2, 3 ) , 4 )"
" ( ( pX : 1 , PY : 2, 3 ) ; 4 )"
" ( 4 , ( pX : 1 , PY : 2, 3 ) )"
" ( 4 ; ( pX : 1 , PY : 2, 3 ) )"
" ( [ pX : 1 , PY : 2, 3 ] , 4 )"
" ( [ pX : 1 , PY : 2, 3 ] ; 4 )"
" ( 4 , [ pX : 1 , PY : 2, 3 ] )"
" ( 4 ; [ pX : 1 , PY : 2, 3 ] )"

Note that "eenrgy" element can be separated with semicolumn.

Valid keys for names fields:

"x", "X" , "pX" , "Px" , "PX "
"y", "Y" , "pY" , "Py" , "PY "
"z", "Z" , "pZ" , "Pz" , "PZ "
"t", "T" , "e" , "E"
Attention
Named fields must be ordered (x,y,z)
Parameters
result(output) the parsed lorentz vector
input(input) the input string
Returns
status code
Author
Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl
Date
2009-09-05

Definition at line 75 of file ParsersVct.cpp.

75  {
76  return parse_(result, input);
77  }
StatusCode parse_(ROOT::Math::PositionVector3D< T1, T2 > &result, const std::string &input)
Definition: ParsersVct.cpp:38
StatusCode Gaudi::Parsers::parse ( std::vector< Gaudi::XYZPoint > &  result,
const std::string &  input 
)

parse the vector of points

Parameters
resut(OUTPUT) the parser vector
input(INPIUT) the string to be parsed
Author
Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl
Date
2009-09-05

Definition at line 88 of file ParsersVct.cpp.

90  {
91  result.clear() ;
92  return parse_(result, input);
93  }
StatusCode parse_(ROOT::Math::PositionVector3D< T1, T2 > &result, const std::string &input)
Definition: ParsersVct.cpp:38
StatusCode Gaudi::Parsers::parse ( std::vector< Gaudi::XYZVector > &  result,
const std::string &  input 
)

parse the vector of vectors

Parameters
resut(OUTPUT) the parser vector
input(INPIUT) the string to be parsed
Author
Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl
Date
2009-09-05

Definition at line 103 of file ParsersVct.cpp.

105  {
106  result.clear() ;
107  return parse_(result, input);
108  }
StatusCode parse_(ROOT::Math::PositionVector3D< T1, T2 > &result, const std::string &input)
Definition: ParsersVct.cpp:38
StatusCode Gaudi::Parsers::parse ( std::vector< Gaudi::LorentzVector > &  result,
const std::string &  input 
)

parse the vector of vectors

Parameters
resut(OUTPUT) the parser vector
input(INPIUT) the string to be parsed
Author
Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl
Date
2009-09-05

Definition at line 120 of file ParsersVct.cpp.

122  {
123  return parse_(result, input);
124  }
StatusCode parse_(ROOT::Math::PositionVector3D< T1, T2 > &result, const std::string &input)
Definition: ParsersVct.cpp:38
StatusCode Gaudi::Parsers::parse ( std::vector< std::pair< double, double > > &  result,
const std::string &  input 
)

parse the bool value

See also
Gaudi::Parsers::BoolGrammar
Parameters
result(output) boolean result
input(input) the string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-12parse the char value
See also
Gaudi::Parsers::CharGrammar
Parameters
result(output) boolean result
input(input) the string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-12
See also
Gaudi::Parsers::parser(char&,std::string&)
Gaudi::Parsers::parser(char&,std::string&) parse the int value
Gaudi::Parsers::IntGrammar
Parameters
result(output) integer result
input(input) the string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-14
See also
Gaudi::Parsers::parser( int&, const std::string& )
Gaudi::Parsers::parser( int&, const std::string& )
Gaudi::Parsers::parser( int&, const std::string& )
Gaudi::Parsers::parser( int&, const std::string& )
Gaudi::Parsers::parser( int&, const std::string& )
Gaudi::Parsers::parser( int&, const std::string& )
Gaudi::Parsers::parser( int&, const std::string& ) parse the double value
Gaudi::Parsers::RealGrammar
Parameters
result(output) double result
input(input) the string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-14
See also
Gaudi::Parsers::parser( double&, const std::string& )
Gaudi::Parsers::parser( double&, const std::string& ) parse the std::string value
Gaudi::Parsers::StringGrammar
Parameters
result(output) string result
input(input) the string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-14parse the std::pair<double,double> value
See also
Gaudi::Parsers::PairGrammar
Gaudi::Parsers::RealGrammar
Parameters
result(output) pair of doubles
input(input) the string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-14parse the std::pair<int,int> value
See also
Gaudi::Parsers::PairGrammar
Gaudi::Parsers::IntGrammar
Parameters
result(output) pair of integers
input(input) the string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-14parse the std::vector<std::pair<double,double> > value
See also
Gaudi::Parsers::VectorGrammar
Gaudi::Parsers::PairGrammar
Gaudi::Parsers::RealGrammar
Parameters
result(output) vector with pairs of doubles
input(input) the string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-14

Definition at line 11 of file ParsersStandardMisc1.cpp.

11  {
12  return Gaudi::Parsers::parse_(result, input);
13 }
StatusCode parse_(ResultT &result, const std::string &input)
StatusCode Gaudi::Parsers::parse ( std::vector< std::pair< int, int > > &  result,
const std::string &  input 
)

parse the std::vector<std::pair<int,int> > value

See also
Gaudi::Parsers::VectorGrammar
Gaudi::Parsers::PairGrammar
Gaudi::Parsers::IntGrammar
Parameters
result(output) vector with pairs of int
input(input) the string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-14

Definition at line 15 of file ParsersStandardMisc1.cpp.

15  {
16  return Gaudi::Parsers::parse_(result, input);
17 }
StatusCode parse_(ResultT &result, const std::string &input)
StatusCode Gaudi::Parsers::parse ( std::vector< std::vector< std::string > > &  result,
const std::string &  input 
)

parse the std::vector<std::vector<std::string> > value

See also
Gaudi::Parsers::VectorGrammar
Gaudi::Parsers::StringGrammar
Parameters
result(output) vector with vectors of strings
input(input) the string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-14

Definition at line 19 of file ParsersStandardMisc1.cpp.

19  {
20  return Gaudi::Parsers::parse_(result, input);
21 }
StatusCode parse_(ResultT &result, const std::string &input)
StatusCode Gaudi::Parsers::parse ( std::vector< std::vector< double > > &  result,
const std::string &  input 
)

parse the std::vector<std::vector<double> > value

See also
Gaudi::Parsers::VectorGrammar
Gaudi::Parsers::RealGrammar
Parameters
result(output) vector with vectors of doubles
input(input) the string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-14

Definition at line 3 of file ParsersStandardMisc2.cpp.

3  {
4  return Gaudi::Parsers::parse_(result, input);
5 }
StatusCode parse_(ResultT &result, const std::string &input)
StatusCode Gaudi::Parsers::parse ( Gaudi::StringKey result,
const std::string &  input 
)

parse the key from the string

See also
Gaudi::Parsers
Gaudi::Parsers::parse
Gaudi::StringKey
Attention
: this function is needed to use it as property
Parameters
result(OUTPUT) the parsing result
inputthe input string
Returns
status code

Definition at line 79 of file StringKey.cpp.

81 {
82  std::string _result ;
83  StatusCode sc = parse ( _result , input ) ;
84  result = Gaudi::StringKey ( _result ) ;
85  return sc ;
86 }
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
The helper class to represent the efficient "key" for access.
Definition: StringKey.h:35
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
StatusCode Gaudi::Parsers::parse ( std::vector< Gaudi::StringKey > &  result,
const std::string &  input 
)

parse the vector of keys from the string

See also
Gaudi::Parsers
Gaudi::Parsers::parse
Gaudi::StringKey
Attention
: this function is needed to use it as property
Parameters
result(OUTPUT) the parsing result
inputthe input string
Returns
status code

Definition at line 99 of file StringKey.cpp.

101 {
102  result.clear() ;
103  typedef std::vector<std::string> Strings ;
104  Strings _result ;
105  StatusCode sc = parse ( _result , input ) ;
106  if ( sc.isFailure() ) { return sc ; } // RETURN
107  result.reserve ( _result.size() ) ;
108  //
109  std::copy ( _result.begin() ,
110  _result.end () , std::back_inserter ( result ) ) ;
111  //
112  return StatusCode::SUCCESS ;
113 }
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.
Definition: StatusCode.h:72
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
StatusCode Gaudi::Parsers::parse ( std::map< int, int > &  result,
const std::string &  input 
)

parse the std::map<int , int> value

See also
Gaudi::Parsers::MapGrammar
Gaudi::Parsers::IntGrammar
Parameters
result(output) map with integer key and double value
input(input) the string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-14

Definition at line 7 of file ParsersStandardMisc2.cpp.

7  {
8  return Gaudi::Parsers::parse_(result, input);
9 }
StatusCode parse_(ResultT &result, const std::string &input)
StatusCode Gaudi::Parsers::parse ( std::map< int, double > &  result,
const std::string &  input 
)

parse the std::map<int , double> value

See also
Gaudi::Parsers::MapGrammar
Gaudi::Parsers::IntGrammar
Gaudi::Parsers::RealGrammar
Parameters
result(output) map with integer key and double value
input(input) the string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-14

Definition at line 11 of file ParsersStandardMisc2.cpp.

11  {
12  return Gaudi::Parsers::parse_(result, input);
13 }
StatusCode parse_(ResultT &result, const std::string &input)
StatusCode Gaudi::Parsers::parse ( std::map< std::string, std::string > &  result,
const std::string &  input 
)

parse the std::map<std::string , std::string> value

See also
Gaudi::Parsers::MapGrammar
Gaudi::Parsers::StringGrammar
Parameters
result(output) map with string key and value
input(input) the string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-14

Definition at line 15 of file ParsersStandardMisc2.cpp.

15  {
16  return Gaudi::Parsers::parse_(result, input);
17 }
StatusCode parse_(ResultT &result, const std::string &input)
StatusCode Gaudi::Parsers::parse ( std::map< std::string, int > &  result,
const std::string &  input 
)

parse the std::map<std::string , int> value

See also
Gaudi::Parsers::MapGrammar
Gaudi::Parsers::StringGrammar
Gaudi::Parsers::IntGrammar
Parameters
result(output) map with string key and integer value
input(input) the string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-14

Definition at line 3 of file ParsersStandardMisc3.cpp.

3  {
4  return Gaudi::Parsers::parse_(result, input);
5 }
StatusCode parse_(ResultT &result, const std::string &input)
StatusCode Gaudi::Parsers::parse ( std::map< std::string, double > &  result,
const std::string &  input 
)

parse the std::map<std::string , double> value

See also
Gaudi::Parsers::MapGrammar
Gaudi::Parsers::StringGrammar
Gaudi::Parsers::RealGrammar
Parameters
result(output) map with string key and integer value
input(input) the string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-14

Definition at line 11 of file ParsersStandardMisc3.cpp.

11  {
12  return Gaudi::Parsers::parse_(result, input);
13 }
StatusCode parse_(ResultT &result, const std::string &input)
StatusCode Gaudi::Parsers::parse ( std::map< std::string, std::vector< std::string > > &  result,
const std::string &  input 
)

parse the std::map<std::string , std::vector<std::string> > value

See also
Gaudi::Parsers::MapGrammar
Gaudi::Parsers::StringGrammar
Gaudi::Parsers::VectorGrammar
Parameters
result(output) map with string value and vector of strings as value
input(input) the string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-14

Definition at line 15 of file ParsersStandardMisc3.cpp.

15  {
16  return Gaudi::Parsers::parse_(result, input);
17 }
StatusCode parse_(ResultT &result, const std::string &input)
StatusCode Gaudi::Parsers::parse ( std::map< std::string, std::vector< int > > &  result,
const std::string &  input 
)

parse the std::map<std::string , std::vector<int> > value

See also
Gaudi::Parsers::MapGrammar
Gaudi::Parsers::StringGrammar
Gaudi::Parsers::VectorGrammar
Gaudi::Parsers::IntGrammar
Parameters
result(output) map with string value and vector of integers as value
input(input) the string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-14

Definition at line 3 of file ParsersStandardMisc4.cpp.

3  {
4  return Gaudi::Parsers::parse_(result, input);
5 }
StatusCode parse_(ResultT &result, const std::string &input)
StatusCode Gaudi::Parsers::parse ( std::map< std::string, std::vector< double > > &  result,
const std::string &  input 
)

parse the std::map<std::string , std::vector<double> > value

See also
Gaudi::Parsers::MapGrammar
Gaudi::Parsers::StringGrammar
Gaudi::Parsers::VectorGrammar
Gaudi::Parsers::RealGrammar
Parameters
result(output) map with string value and vector of doubles as value
input(input) the string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-14

Definition at line 7 of file ParsersStandardMisc4.cpp.

7  {
8  return Gaudi::Parsers::parse_(result, input);
9 }
StatusCode parse_(ResultT &result, const std::string &input)
StatusCode Gaudi::Parsers::parse ( std::map< int, std::string > &  result,
const std::string &  input 
)

parse the std::map<int,std::string> > objects

See also
Gaudi::Parsers::MapGrammar
Author
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Date
2007-12-06

Definition at line 11 of file ParsersStandardMisc4.cpp.

11  {
12  return Gaudi::Parsers::parse_(result, input);
13 }
StatusCode parse_(ResultT &result, const std::string &input)
StatusCode Gaudi::Parsers::parse ( std::map< unsigned int, std::string > &  result,
const std::string &  input 
)

parse the std::map<unsigned int,std::string> > objects

See also
Gaudi::Parsers::MapGrammar
Author
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Date
2007-12-06

Definition at line 3 of file ParsersStandardMisc5.cpp.

3  {
4  return Gaudi::Parsers::parse_(result, input);
5 }
StatusCode parse_(ResultT &result, const std::string &input)
StatusCode Gaudi::Parsers::parse ( std::map< std::string, unsigned int > &  result,
const std::string &  input 
)

parse the std::map<unsigned int,std::string> > objects

See also
Gaudi::Parsers::MapGrammar

Definition at line 7 of file ParsersStandardMisc3.cpp.

7  {
8  return Gaudi::Parsers::parse_(result, input);
9 }
StatusCode parse_(ResultT &result, const std::string &input)
StatusCode Gaudi::Parsers::parse ( std::string &  name,
std::string &  value,
const std::string &  input 
)

parse the pair expression (map-component) " 'name' :value"

const std::string input = "'PackageName':GaudiKernel" ;
std::string name ;
std::string value ;
StatusCode sc = Gaudi::Parsers::parse ( name , value , input ) ;
if ( sc.isFailure() ) { ... }
std::cout << "\tParsed name is " << name
<< "\tParsed value is " << value << std::endl
Parameters
name(output) the parsed name of the component, defined as 'name' or "name" before the column symbol ":", the leading and trailing blans are omitted
value(output) the parsed value of the component, defined as everything after the column symbol ":" till the end of the string
input(input) string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-12

Definition at line 7 of file ParsersStandardMisc5.cpp.

8  {
9  Skipper skipper;
10  KeyValueGrammar<IteratorT, Skipper> g;
11  KeyValueGrammar<IteratorT, Skipper>::ResultT result;
12  std::string::const_iterator iter = input.begin();
13  bool parse_result = qi::phrase_parse(iter, input.end(), g, skipper,
14  result) && (iter==input.end());
15  if (parse_result) {
16  name = result.first;
17  value = result.second;
18  }
19  return parse_result;
20 }
SkipperGrammar< IteratorT > Skipper
dictionary g
Definition: gaudirun.py:364
StatusCode Gaudi::Parsers::parse ( Gaudi::Histo1DDef histo,
const std::string &  input 
)

helper function, needed for implementation of "Histogram Property"

Parameters
histothe histogram description (output)
inputthe string to be parsed
Returns
status code
Author
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Date
2007-09-17

Definition at line 9 of file ParsersHistograms.cpp.

10  {
11  return Gaudi::Parsers::parse_(result, input);
12 }
StatusCode parse_(ResultT &result, const std::string &input)
StatusCode Gaudi::Parsers::parse ( std::map< std::string, Gaudi::Histo1DDef > &  histos,
const std::string &  input 
)

helper function, needed for implementation of "Histogram Property"

Parameters
histosthe map of the histogram descriptions (output)
inputthe string to be parsed
Returns
status code
Author
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Date
2007-09-17

Definition at line 14 of file ParsersHistograms.cpp.

16  {
17  return Gaudi::Parsers::parse_(result, input);
18 }
StatusCode parse_(ResultT &result, const std::string &input)
StatusCode Gaudi::Parsers::parse ( std::map< std::string, std::pair< double, double > > &  params,
const std::string &  input 
)

helper function, needed for implementation of map of pairs It is very useful construction for monitoring to represent the value and error or the allowed range for some parameter

Parameters
paramsthe map of pair
inputthe string to be parsed
Returns
status code
Author
Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Date
2009-05-19

Definition at line 22 of file ParsersStandardMisc5.cpp.

22  {
23  return Gaudi::Parsers::parse_(result, input);
24 }
StatusCode parse_(ResultT &result, const std::string &input)
template<class T , unsigned int N>
StatusCode Gaudi::Parsers::parse ( T(&)  result[N],
const std::string &  input 
)

parser function for C-arrays

Parameters
paramsC-array
inputthe string to be parsed
Returns
status code
Author
Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl
Date
2009-09-15

Definition at line 525 of file Parsers.h.

526  {
527  typedef std::vector<T> _Vct ;
528  // create the temporary vector
529  _Vct tmp ;
530  StatusCode sc = parse ( tmp , input ) ;
531  if ( sc.isFailure() ) { return sc ; } // RETURN
532  if ( N != tmp.size() ) { return StatusCode::FAILURE ; } // RETURN
533  //
534  std::copy ( tmp.begin() , tmp.end() , result ) ;
535  //
536  return StatusCode::SUCCESS ; // RETURN
537  }
StatusCode parse(char(&result)[N], const std::string &input)
parser function for C-strings
Definition: Parsers.h:547
bool isFailure() const
Test for a status code of FAILURE.
Definition: StatusCode.h:72
int N
Definition: IOTest.py:90
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
template<unsigned int N>
StatusCode Gaudi::Parsers::parse ( char(&)  result[N],
const std::string &  input 
)

parser function for C-strings

Parameters
paramsC-string
inputthe string to be parsed
Returns
status code
Author
Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl
Date
2009-09-15

Definition at line 547 of file Parsers.h.

548  {
549  // clear the string
550  std::fill_n ( result , N , ' ' ) ;
551  // create the temporary string
552  std::string tmp ;
553  StatusCode sc = parse ( tmp , input ) ;
554  if ( sc.isFailure() ) { return sc ; } // RETURN
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 ) ; }
561  else { return StatusCode::FAILURE ; }
562  //
563  return StatusCode::SUCCESS ; // RETURN
564  }
StatusCode parse(char(&result)[N], const std::string &input)
parser function for C-strings
Definition: Parsers.h:547
bool isFailure() const
Test for a status code of FAILURE.
Definition: StatusCode.h:72
int N
Definition: IOTest.py:90
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
StatusCode Gaudi::Parsers::parse ( GaudiUtils::VectorMap< std::string, double > &  result,
const std::string &  input 
)

parse the key from the string

See also
Gaudi::Parsers
Gaudi::Parsers::parse
Gaudi::VectorMap
Attention
: this function is needed to use it as property
Parameters
result(OUTPUT) the parsing result
inputthe input string
Returns
status code

Definition at line 11 of file ParsersCollections.cpp.

12  {
13  return Gaudi::Parsers::parse_(result, input);
14 }
StatusCode parse_(ResultT &result, const std::string &input)
StatusCode Gaudi::Parsers::parse ( GaudiUtils::VectorMap< Gaudi::StringKey, double > &  result,
const std::string &  input 
)

parse the vector of keys from the string

See also
Gaudi::Parsers
Gaudi::Parsers::parse
Gaudi::VectorMap
Gaudi::StringKey
Attention
: this function is needed to use it as property
Parameters
result(OUTPUT) the parsing result
inputthe input string
Returns
status code

Definition at line 17 of file ParsersCollections.cpp.

18  {
19  return Gaudi::Parsers::parse_(result, input);
20 }
StatusCode parse_(ResultT &result, const std::string &input)
template<typename ResultT >
StatusCode Gaudi::Parsers::parse_ ( ResultT &  result,
const std::string &  input 
)
inline

Definition at line 31 of file ParsersFactory.h.

31  {
32  Skipper skipper;
33  typename Grammar_<IteratorT, ResultT, Skipper>::Grammar g;
34  IteratorT iter = input.begin(), end = input.end();
35  return qi::phrase_parse( iter, end, g, skipper , result) && (iter==end);
36  }
SkipperGrammar< IteratorT > Skipper
boost::spirit::position_iterator< string::const_iterator > IteratorT
the actual type of position iterator
Definition: Parsers.icpp:64
tuple end
Definition: IOTest.py:101
dictionary g
Definition: gaudirun.py:364
template<typename T1 , typename T2 >
StatusCode Gaudi::Parsers::parse_ ( ROOT::Math::PositionVector3D< T1, T2 > &  result,
const std::string &  input 
)
inline

Definition at line 38 of file ParsersVct.cpp.

38  {
39  Skipper skipper;
40  typename Grammar_<IteratorT, ROOT::Math::PositionVector3D<T1,T2>, Skipper >::Grammar g;
41  IteratorT iter = input.begin(), end = input.end();
42  if (qi::phrase_parse( iter, end, g, skipper, result)){
43  return StatusCode::SUCCESS;
44  }
45  //@attention always
46  return true;
47  }
SkipperGrammar< IteratorT > Skipper
boost::spirit::position_iterator< string::const_iterator > IteratorT
the actual type of position iterator
Definition: Parsers.icpp:64
tuple end
Definition: IOTest.py:101
dictionary g
Definition: gaudirun.py:364
template<>
StatusCode Gaudi::Parsers::parse_ ( std::string &  result,
const std::string &  input 
)
inline

Definition at line 39 of file ParsersFactory.h.

39  {
40  Skipper skipper;
41  Grammar_<IteratorT, std::string, Skipper>::Grammar g;
42  IteratorT iter = input.begin(), end = input.end();
43  if (!(qi::phrase_parse( iter, end, g, skipper, result) && (iter==end))){
44  result = input;
45  }
46  //@attention always
47  return true;
48  }
SkipperGrammar< IteratorT > Skipper
boost::spirit::position_iterator< string::const_iterator > IteratorT
the actual type of position iterator
Definition: Parsers.icpp:64
tuple end
Definition: IOTest.py:101
dictionary g
Definition: gaudirun.py:364
template<typename CharT >
StatusCode Gaudi::Parsers::parse_char ( CharT &  result,
const string &  input 
)
inline

helper function to "merge" the implementation of all parsers for "char-like" quantities into one templated grammar

See also
Gaudi::Parsers::CharGrammar
Parameters
result(output) parsing result
input(input) string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-12

Definition at line 138 of file Parsers.icpp.

139  {
140  CharGrammar<CharT> g;
141  return parse
142  ( createIterator(input),
143  IteratorT(),
144  g[var(result)=arg1]).full;
145  }
IteratorT createIterator(const std::string &input)
create the position iterator from the input
Definition: Parsers.icpp:67
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
boost::spirit::position_iterator< string::const_iterator > IteratorT
the actual type of position iterator
Definition: Parsers.icpp:64
dictionary g
Definition: gaudirun.py:364
template<typename CharT >
StatusCode Gaudi::Parsers::parse_char_vector ( std::vector< CharT > &  result,
const string &  input 
)
inline

helper function to "merge" the implementation of all parsers for vector of 'char-like' quantities into the combination of templated grammars

See also
Gaudi::Parsers::VectorGrammar
Gaudi::Parsers::CharGrammar
Gaudi::Parsers::SkipperGrammar
Parameters
result(output) parsing result
input(input) string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-12

Definition at line 165 of file Parsers.icpp.

166  {
167  VectorGrammar<CharGrammar<CharT> > g;
168  return parse
169  ( createIterator(input),
170  IteratorT(),
171  g[var(result)=arg1],
172  SkipperGrammar()).full;
173  }
IteratorT createIterator(const std::string &input)
create the position iterator from the input
Definition: Parsers.icpp:67
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
boost::spirit::position_iterator< string::const_iterator > IteratorT
the actual type of position iterator
Definition: Parsers.icpp:64
dictionary g
Definition: gaudirun.py:364
template<typename IntegerT >
StatusCode Gaudi::Parsers::parse_integer ( IntegerT &  result,
const string &  input 
)
inline

helper function to "merge" the implementation of all parsers for integer-like quantities into one templated grammar

See also
Gaudi::Parsers::IntGrammar
Parameters
result(output) parsing result
input(input) string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-12

Definition at line 86 of file Parsers.icpp.

87  {
88  IntGrammar<IntegerT> g;
89  return parse
90  ( createIterator(input),
91  IteratorT(),
92  g[var(result)=arg1]).full;
93  }
IteratorT createIterator(const std::string &input)
create the position iterator from the input
Definition: Parsers.icpp:67
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
boost::spirit::position_iterator< string::const_iterator > IteratorT
the actual type of position iterator
Definition: Parsers.icpp:64
dictionary g
Definition: gaudirun.py:364
template<typename IntegerT >
StatusCode Gaudi::Parsers::parse_integer_vector ( std::vector< IntegerT > &  result,
const string &  input 
)
inline

helper function to "merge" the implementation of all parsers for vector of integer-like quantities into the combination of templated grammars

See also
Gaudi::Parsers::VectorGrammar
Gaudi::Parsers::IntGrammar
Gaudi::Parsers::SkipperGrammar
Parameters
result(output) parsing result
input(input) string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-12

Definition at line 113 of file Parsers.icpp.

114  {
115  VectorGrammar<IntGrammar<IntegerT> > g;
116  return parse
117  ( createIterator(input),
118  IteratorT(),
119  g[var(result)=arg1],
120  SkipperGrammar()).full;
121  }
IteratorT createIterator(const std::string &input)
create the position iterator from the input
Definition: Parsers.icpp:67
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
boost::spirit::position_iterator< string::const_iterator > IteratorT
the actual type of position iterator
Definition: Parsers.icpp:64
dictionary g
Definition: gaudirun.py:364
template<typename RealT >
StatusCode Gaudi::Parsers::parse_real ( RealT &  result,
const string &  input 
)
inline

helper function to "merge" the implementation of all parsers for "float-like" quantities into one templated grammar

See also
Gaudi::Parsers::RealGrammar
Parameters
result(output) parsing result
input(input) string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-12

Definition at line 189 of file Parsers.icpp.

190  {
191  RealGrammar<RealT> g;
192  return parse
193  ( createIterator(input),
194  IteratorT(),
195  g[var(result)=arg1],
196  SkipperGrammar()).full;
197  }
IteratorT createIterator(const std::string &input)
create the position iterator from the input
Definition: Parsers.icpp:67
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
boost::spirit::position_iterator< string::const_iterator > IteratorT
the actual type of position iterator
Definition: Parsers.icpp:64
dictionary g
Definition: gaudirun.py:364
template<typename RealT >
StatusCode Gaudi::Parsers::parse_real_vector ( std::vector< RealT > &  result,
const string &  input 
)

helper function to "merge" the implementation of all parsers for vector of 'char-like' quantities into the combination of templated grammars

See also
Gaudi::Parsers::VectorGrammar
Gaudi::Parsers::RealGrammar
Gaudi::Parsers::SkipperGrammar
Parameters
result(output) parsing result
input(input) string to be parsed
Returns
status code
Author
Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2006-05-12

Definition at line 217 of file Parsers.icpp.

218  {
219  VectorGrammar< RealGrammar<RealT> > g;
220  return parse
221  ( createIterator(input),
222  IteratorT(),
223  g[var(result)=arg1],
224  SkipperGrammar()).full;
225  }
IteratorT createIterator(const std::string &input)
create the position iterator from the input
Definition: Parsers.icpp:67
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
boost::spirit::position_iterator< string::const_iterator > IteratorT
the actual type of position iterator
Definition: Parsers.icpp:64
dictionary g
Definition: gaudirun.py:364
bool Gaudi::Parsers::ParseUnits ( const Position &  from,
const std::string &  filename,
const std::string &  search_path,
IncludedFiles *  included,
Messages *  messages,
Node *  root 
)

Definition at line 144 of file Parser.cpp.

147  {
148  typedef UnitsGrammar<Iterator,SkipperGrammar<Iterator> > Grammar;
149  return ParseFile<Grammar>(from, filename, search_path, included,
150  messages, root);
151 }
tuple root
Definition: IOTest.py:42
bool Gaudi::Parsers::ReadOptions ( const std::string &  filename,
const std::string &  search_path,
Messages *  messages,
Catalog *  catalog,
Units *  units,
PragmaOptions *  pragma,
Node *  root 
)

Parse and analyze filename, save all messages and properties.

Also output AST tree (http://en.wikipedia.org/wiki/Abstract_syntax_tree). Returns true if there were no errors during analysis.

Definition at line 438 of file Analyzer.cpp.

440  {
441  // Extract Path
442  IncludedFiles included;
443  bool result = Parse(filename, search_path, &included, messages, root);
444  if (!result) return false;
445 
446  bool result1 = Analyze(root, search_path, &included, messages, catalog, units,
447  pragma);
448  bool result2 = Unreference(*catalog, messages);
449  return result1 && result2;
450 }
bool Parse(const std::string &filename, const std::string &search_path, IncludedFiles *included, Messages *messages, Node *root)
Definition: Parser.cpp:127
tuple root
Definition: IOTest.py:42
bool Unreference(gp::Catalog &catalog, gp::Messages *messages)
Definition: Analyzer.cpp:413
Gaudi::Parsers::REGISTER_GRAMMAR ( Edges  ,
EdgeGrammar   
)
Gaudi::Parsers::REGISTER_GRAMMAR ( std::string  ,
StringGrammar   
)
Gaudi::Parsers::REGISTER_GRAMMAR ( Gaudi::StringKey  ,
StringGrammar   
)
Gaudi::Parsers::REGISTER_GRAMMAR ( char  ,
CharGrammar   
)
Gaudi::Parsers::REGISTER_GRAMMAR ( bool  ,
BoolGrammar   
)
Gaudi::Parsers::REGISTER_GRAMMAR ( H1  ,
H1Grammar   
)
Gaudi::Parsers::REGISTER_GRAMMAR ( H2  ,
H2Grammar   
)
Gaudi::Parsers::REGISTER_GRAMMAR ( Gaudi::Histo1DDef  ,
Histo1DGrammar   
)