The Gaudi Framework
master (37c0b60a)
|
#include <list>
#include <map>
#include <set>
#include <string>
#include <unordered_set>
#include <vector>
#include <GaudiKernel/HistoDef.h>
#include <GaudiKernel/Map.h>
#include <GaudiKernel/StatusCode.h>
Go to the source code of this file.
Namespaces | |
Gaudi | |
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from python with a format liks : ( nbins, min, max, title ) where title can be ommited. | |
Gaudi::Parsers | |
Macros | |
#define | PARSERS_DECL_FOR_SINGLE(Type) GAUDI_API StatusCode parse( Type& result, std::string_view input ); |
#define | PARSERS_DECL_FOR_PAIR(FirstType, SecondType) GAUDI_API StatusCode parse( std::pair<FirstType, SecondType>& result, std::string_view input ); |
#define | PARSERS_DECL_FOR_LIST(InnerType) GAUDI_API StatusCode parse( std::vector<InnerType>& result, std::string_view input ); |
#define | PARSERS_DECL_FOR_SET(InnerType) |
Functions | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::vector< std::pair< double, double >> &result, std::string_view input) |
parse the bool value More... | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::vector< std::pair< int, int >> &result, std::string_view input) |
parse the std::vector<std::pair<int,int> > value More... | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::vector< std::vector< std::string >> &result, std::string_view input) |
parse the std::vector<std::vector<std::string> > value More... | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::vector< std::vector< double >> &result, std::string_view input) |
parse the std::vector<std::vector<double> > value More... | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::vector< std::vector< int >> &result, std::string_view input) |
parse the std::vector<std::vector<int> > value More... | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::map< int, int > &result, std::string_view input) |
parse the std::map<int , int> value More... | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::map< int, double > &result, std::string_view input) |
parse the std::map<int , double> value More... | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::map< std::string, std::string > &result, std::string_view input) |
parse the std::map<std::string , std::string> value More... | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::map< std::string, std::string, std::less<>> &result, std::string_view input) |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::map< std::string, int > &result, std::string_view input) |
parse the std::map<std::string , int> value More... | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::map< std::string, double > &result, std::string_view input) |
parse the std::map<std::string , double> value More... | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::map< std::string, std::vector< std::string >> &result, std::string_view input) |
parse the std::map<std::string , std::vector<std::string> > value More... | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::map< std::string, std::vector< int >> &result, std::string_view input) |
parse the std::map<std::string , std::vector<int> > value More... | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::map< std::string, std::vector< double >> &result, std::string_view input) |
parse the std::map<std::string , std::vector<double> > value More... | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::map< int, std::string > &result, std::string_view input) |
parse the std::map<int,std::string> > objects More... | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::map< unsigned int, std::string > &result, std::string_view input) |
parse the std::map<unsigned int,std::string> > objects More... | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::map< std::string, unsigned int > &result, std::string_view input) |
parse the std::map<unsigned int,std::string> > objects More... | |
template<typename K , typename V , typename M > | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (GaudiUtils::Map< K, V, M > &result, std::string_view input) |
parse the GaudiUtils::Map<K, V, M> objects More... | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::string &name, std::string &value, std::string_view input) |
parse the pair expression (map-component) " 'name' :value" More... | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (Gaudi::Histo1DDef &histo, std::string_view input) |
helper function, needed for implementation of "Histogram Property" More... | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::map< std::string, Gaudi::Histo1DDef > &histos, std::string_view input) |
helper function, needed for implementation of "Histogram Property" More... | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::map< std::string, std::pair< double, double >> ¶ms, std::string_view input) |
helper function, needed for implementation of map of pairs More... | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::map< std::string, std::pair< int, int >> ¶ms, std::string_view input) |
helper function, needed for implementation of map of pairs More... | |
template<class T , unsigned int N> | |
StatusCode | Gaudi::Parsers::parse (T(&result)[N], std::string_view input) |
parser function for C-arrays More... | |
template<unsigned int N> | |
StatusCode | Gaudi::Parsers::parse (char(&result)[N], std::string_view input) |
parser function for C-strings More... | |
The declaration of major parsing functions used e.g for (re)implementation of new extended properties see class Property These function also could be used in a different, much wider contex. all of them have the semantic: StatusCode parse ( TYPE& result , std::string_view input )
where input
is the input string to be parsed, and result
is the the result of parsing
Definition in file CommonParsers.h.
#define PARSERS_DECL_FOR_LIST | ( | InnerType | ) | GAUDI_API StatusCode parse( std::vector<InnerType>& result, std::string_view input ); |
Definition at line 35 of file CommonParsers.h.
#define PARSERS_DECL_FOR_PAIR | ( | FirstType, | |
SecondType | |||
) | GAUDI_API StatusCode parse( std::pair<FirstType, SecondType>& result, std::string_view input ); |
Definition at line 32 of file CommonParsers.h.
#define PARSERS_DECL_FOR_SET | ( | InnerType | ) |
Definition at line 38 of file CommonParsers.h.
#define PARSERS_DECL_FOR_SINGLE | ( | Type | ) | GAUDI_API StatusCode parse( Type& result, std::string_view input ); |
Definition at line 30 of file CommonParsers.h.