CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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, int argc, char* argv[]);
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
std::unique_ptr< ParameterSet > readPSetsFrom(std::string const &fileOrString)
tuple argc
Definition: dir2webdir.py:39
tuple config
parse the configuration file
std::unique_ptr< ParameterSet > readConfig(std::string const &config)
void makeParameterSets(std::string const &configtext, std::unique_ptr< ParameterSet > &main)
essentially the same as the previous method