CMS 3D CMS Logo

MakePyBind11ParameterSets.h
Go to the documentation of this file.
1 #ifndef FWCore_PyBind11ParameterSet_MakePyBind11ParameterSets_h
2 #define FWCore_PyBind11ParameterSet_MakePyBind11ParameterSets_h
3 
4 //----------------------------------------------------------------------
5 // Declare functions used to create ParameterSets.
6 //----------------------------------------------------------------------
7 
8 #include <memory>
9 
10 #include <string>
11 #include <vector>
12 
13 namespace edm {
14  class ParameterSet;
15  namespace cmspybind11 {
16  // input can either be a python file name or a python config string
17  std::unique_ptr<ParameterSet> readConfig(std::string const& config);
18 
20  std::unique_ptr<ParameterSet> readConfig(std::string const& config, const std::vector<std::string>& args);
21 
23  void makeParameterSets(std::string const& configtext, std::unique_ptr<ParameterSet>& main);
24 
28  std::unique_ptr<ParameterSet> readPSetsFrom(std::string const& fileOrString);
29  } // namespace cmspybind11
30 } // namespace edm
31 #endif
Definition: config.py:1
std::unique_ptr< ParameterSet > readPSetsFrom(std::string const &fileOrString)
HLT enums.
std::unique_ptr< ParameterSet > readConfig(std::string const &config)
Definition: main.py:1
void makeParameterSets(std::string const &configtext, std::unique_ptr< ParameterSet > &main)
essentially the same as the previous method