| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Gaudi::Parsers Namespace Reference


Classes

struct  ClosureGrammar
 Grammar or grammar rule which derive from this struct will have attribute of type T and name val. More...
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  CharGrammar
 The valid represenation of char values are:. More...
class  IntGrammar
 The valid representation of integers values are:. More...
class  RealGrammar
 The valid represenation of real values are:. More...
class  StringGrammar
 The valid represenation of string values are:. More...
class  SkipperGrammar
 Skipping spaces and comments. More...
class  PairGrammar
 The valid represenation of pairs are: ("abc",123) or ("abc","def") Inner types of pair depends on KeyGrammarT and ValueGrammarT grammars. More...
class  VectorGrammar
 The valid represenation of vector are:
  • {"abc","defj","i"} or {1,2,3,4,5}
  • ["abc","defj","i"] or [1,2,3,4,5] Inner type depends on GrammarT grammar.
More...
class  MapGrammar
 The valid represenation of map are:
  • {"file1":"path1","something":"nothing"}
  • {"file1"="path1","something"="nothing"}
  • ["file1":10,"something":20]
  • ["file1"=30,"something"=40] Inner key type depends on KeyGrammarT grammar Inner value type depends on ValueGrammarT grammar.
More...

Functions

StatusCode parse (bool &result, const std::string &input)
 parse the bool value
StatusCode parse (char &result, const std::string &input)
 parse the char value
StatusCode parse (unsigned char &result, const std::string &input)
StatusCode parse (signed char &result, const std::string &input)
StatusCode parse (int &result, const std::string &input)
 parse the int value
StatusCode parse (short &result, const std::string &input)
StatusCode parse (unsigned short &result, const std::string &input)
StatusCode parse (unsigned int &result, const std::string &input)
StatusCode parse (long &result, const std::string &input)
StatusCode parse (unsigned long &result, const std::string &input)
StatusCode parse (long long &result, const std::string &input)
StatusCode parse (unsigned long long &result, const std::string &input)
StatusCode parse (double &result, const std::string &input)
 parse the double value
StatusCode parse (float &result, const std::string &input)
StatusCode parse (long double &result, const std::string &input)
StatusCode parse (std::string &result, const std::string &input)
 parse the std::string value
StatusCode parse (std::vector< bool > &result, const std::string &input)
 parse the std::vector<bool> value
StatusCode parse (std::vector< char > &result, const std::string &input)
 parse the std::vector<char> value
StatusCode parse (std::vector< unsigned char > &result, const std::string &input)
StatusCode parse (std::vector< signed char > &result, const std::string &input)
StatusCode parse (std::vector< int > &result, const std::string &input)
 parse the std::vector<int> value
StatusCode parse (std::vector< short > &result, const std::string &input)
StatusCode parse (std::vector< unsigned short > &result, const std::string &input)
StatusCode parse (std::vector< unsigned int > &result, const std::string &input)
StatusCode parse (std::vector< long > &result, const std::string &input)
StatusCode parse (std::vector< unsigned long > &result, const std::string &input)
StatusCode parse (std::vector< long long > &result, const std::string &input)
StatusCode parse (std::vector< unsigned long long > &result, const std::string &input)
StatusCode parse (std::vector< double > &result, const std::string &input)
 parse the std::vector<double> value
StatusCode parse (std::vector< float > &result, const std::string &input)
StatusCode parse (std::vector< long double > &result, const std::string &input)
StatusCode parse (std::vector< std::string > &result, const std::string &input)
 parse the std::vector<std::string> value
StatusCode parse (std::pair< double, double > &result, const std::string &input)
 parse the std::pair<double,double> value
StatusCode parse (std::pair< int, int > &result, const std::string &input)
 parse the std::pair<int,int> value
StatusCode parse (std::vector< std::pair< double, double > > &result, const std::string &input)
 parse the std::vector<std::pair<double,double> > value
StatusCode parse (std::vector< std::pair< int, int > > &result, const std::string &input)
 parse the std::vector<std::pair<int,int> > value
StatusCode parse (std::vector< std::vector< std::string > > &result, const std::string &input)
 parse the std::vector<std::vector<std::string> > value
StatusCode parse (std::vector< std::vector< double > > &result, const std::string &input)
 parse the std::vector<std::vector<double> > value
StatusCode parse (std::map< int, int > &result, const std::string &input)
 parse the std::map<int , int> value
StatusCode parse (std::map< int, double > &result, const std::string &input)
 parse the std::map<int , double> value
StatusCode parse (std::map< std::string, std::string > &result, const std::string &input)
 parse the std::map<std::string , std::string> value
StatusCode parse (std::map< std::string, int > &result, const std::string &input)
 parse the std::map<std::string , int> value
StatusCode parse (std::map< std::string, double > &result, const std::string &input)
 parse the std::map<std::string , double> value
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
StatusCode parse (std::map< std::string, std::vector< int > > &result, const std::string &input)
 parse the std::map<std::string , std::vector<int> > value
StatusCode parse (std::map< std::string, std::vector< double > > &result, const std::string &input)
 parse the std::map<std::string , std::vector<double> > value
StatusCode parse (std::map< int, std::string > &result, const std::string &input)
 parse the std::map<int,std::string> > objects
StatusCode parse (std::map< unsigned int, std::string > &result, const std::string &input)
 parse the std::map<unsigned int,std::string> > objects
StatusCode parse (std::string &name, std::string &value, const std::string &input)
 parse the pair expression (map-component) " 'name' :value"
StatusCode parse (Gaudi::Histo1DDef &histo, const std::string &input)
 helper function, needed for implementation of "Histogram Property"
StatusCode parse (std::map< std::string, Gaudi::Histo1DDef > &histos, const std::string &input)
 helper function, needed for implementation of "Histogram Property"

Function Documentation

StatusCode Gaudi::Parsers::parse ( bool &  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 Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-12

StatusCode Gaudi::Parsers::parse ( char &  result,
const std::string &  input 
)

parse 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 Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-12

StatusCode Gaudi::Parsers::parse ( unsigned char &  result,
const std::string &  input 
)

See also:
Gaudi::Parsers::parser(char&,std::string&)

StatusCode Gaudi::Parsers::parse ( signed char &  result,
const std::string &  input 
)

See also:
Gaudi::Parsers::parser(char&,std::string&)

StatusCode Gaudi::Parsers::parse ( int &  result,
const std::string &  input 
)

parse the int value

See also:
Gaudi::Parsers::IntGrammar
Parameters:
result (output) integer result
input (input) the string to be parsed
Returns:
status code
Author:
Alexander MAZUROV Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-14

StatusCode Gaudi::Parsers::parse ( short &  result,
const std::string &  input 
)

See also:
Gaudi::Parsers::parser( int&, const std::string& )

StatusCode Gaudi::Parsers::parse ( unsigned short &  result,
const std::string &  input 
)

See also:
Gaudi::Parsers::parser( int&, const std::string& )

StatusCode Gaudi::Parsers::parse ( unsigned int &  result,
const std::string &  input 
)

See also:
Gaudi::Parsers::parser( int&, const std::string& )

StatusCode Gaudi::Parsers::parse ( long &  result,
const std::string &  input 
)

See also:
Gaudi::Parsers::parser( int&, const std::string& )

StatusCode Gaudi::Parsers::parse ( unsigned long &  result,
const std::string &  input 
)

See also:
Gaudi::Parsers::parser( int&, const std::string& )

StatusCode Gaudi::Parsers::parse ( long long &  result,
const std::string &  input 
)

See also:
Gaudi::Parsers::parser( int&, const std::string& )

StatusCode Gaudi::Parsers::parse ( unsigned long long &  result,
const std::string &  input 
)

See also:
Gaudi::Parsers::parser( int&, const std::string& )

StatusCode Gaudi::Parsers::parse ( double &  result,
const std::string &  input 
)

parse the double value

See also:
Gaudi::Parsers::RealGrammar
Parameters:
result (output) double result
input (input) the string to be parsed
Returns:
status code
Author:
Alexander MAZUROV Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-14

StatusCode Gaudi::Parsers::parse ( float &  result,
const std::string &  input 
)

See also:
Gaudi::Parsers::parser( double&, const std::string& )

StatusCode Gaudi::Parsers::parse ( long double &  result,
const std::string &  input 
)

See also:
Gaudi::Parsers::parser( double&, const std::string& )

StatusCode Gaudi::Parsers::parse ( std::string &  result,
const std::string &  input 
)

parse the std::string value

See also:
Gaudi::Parsers::StringGrammar
Parameters:
result (output) string result
input (input) the string to be parsed
Returns:
status code
Author:
Alexander MAZUROV Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-14

StatusCode Gaudi::Parsers::parse ( std::vector< bool > &  result,
const std::string &  input 
)

parse the std::vector<bool> value

See also:
Gaudi::Parsers::VectorGrammar

Gaudi::Parsers::BoolGrammar

Parameters:
result (output) vector with boolean elements
input (input) the string to be parsed
Returns:
status code
Author:
Alexander MAZUROV Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-14

StatusCode Gaudi::Parsers::parse ( std::vector< char > &  result,
const std::string &  input 
)

parse the std::vector<char> value

See also:
Gaudi::Parsers::VectorGrammar

Gaudi::Parsers::CharGrammar

Parameters:
result (output) vector with char elements
input (input) the string to be parsed
Returns:
status code
Author:
Alexander MAZUROV Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-14

StatusCode Gaudi::Parsers::parse ( std::vector< unsigned char > &  result,
const std::string &  input 
)

See also:
parse( std::vector<char>& ,const std::string& );

StatusCode Gaudi::Parsers::parse ( std::vector< signed char > &  result,
const std::string &  input 
)

See also:
parse( std::vector<char>& ,const std::string& );

StatusCode Gaudi::Parsers::parse ( std::vector< int > &  result,
const std::string &  input 
)

parse the std::vector<int> value

See also:
Gaudi::Parsers::VectorGrammar

Gaudi::Parsers::IntGrammar

Parameters:
result (output) vector with integer elements
input (input) the string to be parsed
Returns:
status code
Author:
Alexander MAZUROV Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-14

StatusCode Gaudi::Parsers::parse ( std::vector< short > &  result,
const std::string &  input 
)

See also:
parse( std::vector<int>& ,const std::string& );

StatusCode Gaudi::Parsers::parse ( std::vector< unsigned short > &  result,
const std::string &  input 
)

See also:
parse( std::vector<int>& ,const std::string& );

StatusCode Gaudi::Parsers::parse ( std::vector< unsigned int > &  result,
const std::string &  input 
)

See also:
parse( std::vector<int>& ,const std::string& );

StatusCode Gaudi::Parsers::parse ( std::vector< long > &  result,
const std::string &  input 
)

See also:
parse( std::vector<int>& ,const std::string& );

StatusCode Gaudi::Parsers::parse ( std::vector< unsigned long > &  result,
const std::string &  input 
)

See also:
parse( std::vector<int>& ,const std::string& );

StatusCode Gaudi::Parsers::parse ( std::vector< long long > &  result,
const std::string &  input 
)

See also:
parse( std::vector<int>& ,const std::string& );

StatusCode Gaudi::Parsers::parse ( std::vector< unsigned long long > &  result,
const std::string &  input 
)

See also:
parse( std::vector<int>& ,const std::string& );

StatusCode Gaudi::Parsers::parse ( std::vector< double > &  result,
const std::string &  input 
)

parse the std::vector<double> value

See also:
Gaudi::Parsers::VectorGrammar

Gaudi::Parsers::RealGrammar

Parameters:
result (output) vector with double elements
input (input) the string to be parsed
Returns:
status code
Author:
Alexander MAZUROV Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-14

StatusCode Gaudi::Parsers::parse ( std::vector< float > &  result,
const std::string &  input 
)

See also:
parse( std::vector<double>& ,const std::string& );

StatusCode Gaudi::Parsers::parse ( std::vector< long double > &  result,
const std::string &  input 
)

See also:
parse( std::vector<double>& ,const std::string& );

StatusCode Gaudi::Parsers::parse ( std::vector< std::string > &  result,
const std::string &  input 
)

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

See also:
Gaudi::Parsers::VectorGrammar

Gaudi::Parsers::StringGrammar

Parameters:
result (output) vector with string elements
input (input) the string to be parsed
Returns:
status code
Author:
Alexander MAZUROV Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-14

StatusCode Gaudi::Parsers::parse ( std::pair< double, double > &  result,
const std::string &  input 
)

parse 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 Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-14

StatusCode Gaudi::Parsers::parse ( std::pair< int, int > &  result,
const std::string &  input 
)

parse 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 Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-14

StatusCode Gaudi::Parsers::parse ( std::vector< std::pair< double, double > > &  result,
const std::string &  input 
)

parse 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 Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-14

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 Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-14

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 Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-14

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 Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-14

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 Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-14

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 Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-14

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 Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-14

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 Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-14

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 Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-14

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 Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-14

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 Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-14

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 Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-14

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 ibelyaev@physics.syr.edu

Alexander MAZUROV Alexander.Mazurov@gmail.com

Date:
2007-12-06

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 ibelyaev@physics.syr.edu

Alexander MAZUROV Alexander.Mazurov@gmail.com

Date:
2007-12-06

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 Alexander.Mazurov@gmail.com

Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
2006-05-12

StatusCode Gaudi::Parsers::parse ( Gaudi::Histo1DDef &  histo,
const std::string &  input 
)

helper function, needed for implementation of "Histogram Property"

Parameters:
histo the histogram description (output)
input the string to be parsed
Returns:
status code
Author:
Vanya BELYAEV ibelyaev@physics.syr.edu

Alexander MAZUROV Alexander.Mazurov@gmail.com

Date:
2007-09-17

StatusCode Gaudi::Parsers::parse ( std::map< std::string, Gaudi::Histo1DDef > &  histos,
const std::string &  input 
)

helper function, needed for implementation of "Histogram Property"

Parameters:
histos the map of the histogram descriptions (output)
input the string to be parsed
Returns:
status code
Author:
Vanya BELYAEV ibelyaev@physics.syr.edu

Alexander MAZUROV Alexander.Mazurov@gmail.com

Date:
2007-09-17

| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 19:57:17 2011 for GaudiKernel by doxygen 1.4.7