![]() |
The Gaudi Framework
master (82fdf313)
|
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. More...
#include <GaudiKernel/HistoDef.h>
#include <GaudiKernel/Map.h>
#include <GaudiKernel/StatusCode.h>
#include <list>
#include <map>
#include <set>
#include <string>
#include <unordered_set>
#include <vector>
Go to the source code of this file.
Namespaces | |
namespace | 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. | |
namespace | Gaudi::Parsers |
Macros | |
#define | PARSERS_DECL_FOR_SINGLE(Type) |
#define | PARSERS_DECL_FOR_PAIR(FirstType, SecondType) |
#define | PARSERS_DECL_FOR_LIST(InnerType) |
#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 | |
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 | |
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 | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::vector< std::vector< double > > &result, std::string_view input) |
parse the std::vector<std::vector<double> > value | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::vector< std::vector< int > > &result, std::string_view input) |
parse the std::vector<std::vector<int> > value | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::map< int, int > &result, std::string_view input) |
parse the std::map<int , int> value | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::map< int, double > &result, std::string_view input) |
parse the std::map<int , double> value | |
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 | |
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 | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::map< std::string, double > &result, std::string_view input) |
parse the std::map<std::string , double> value | |
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 | |
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 | |
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 | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::map< int, std::string > &result, std::string_view input) |
parse the std::map<int,std::string> > objects | |
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 | |
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 | |
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 | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::string &name, std::string &value, std::string_view input) |
parse the pair expression (map-component) " 'name' :value" | |
GAUDI_API StatusCode | Gaudi::Parsers::parse (Gaudi::Histo1DDef &histo, std::string_view input) |
helper function, needed for implementation of "Histogram Property" | |
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" | |
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 | |
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 | |
template<class T, unsigned int N> | |
StatusCode | Gaudi::Parsers::parse (T(&result)[N], std::string_view input) |
parser function for C-arrays | |
template<unsigned int N> | |
StatusCode | Gaudi::Parsers::parse (char(&result)[N], std::string_view input) |
parser function for C-strings | |
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 | ) |
Definition at line 28 of file CommonParsers.h.
#define PARSERS_DECL_FOR_PAIR | ( | FirstType, | |
SecondType ) |
Definition at line 25 of file CommonParsers.h.
#define PARSERS_DECL_FOR_SET | ( | InnerType | ) |
Definition at line 31 of file CommonParsers.h.
#define PARSERS_DECL_FOR_SINGLE | ( | Type | ) |
Definition at line 23 of file CommonParsers.h.