CMS 3D CMS Logo

PyBind11ProcessDesc.h
Go to the documentation of this file.
1 #ifndef FWCore_PyBind11ParameterSet_PyBind11ProcessDesc_h
2 #define FWCore_PyBind11ParameterSet_PyBind11ProcessDesc_h
3 
5 
6 #include <memory>
7 #include <string>
8 #include <vector>
9 
10 namespace edm {
11  class ParameterSet;
12  class ProcessDesc;
13 } // namespace edm
14 
16 public:
17  PyBind11InterpreterSentry(bool ownsInterpreter);
19 
21 
22 private:
23  bool const ownsInterpreter_;
24 };
25 
27 public:
37 
38  PyBind11ProcessDesc(std::string const& config, int argc, char* argv[]);
39 
41 
43 
45 
46  std::string dump() const;
47 
48  // makes a new (copy) of the ParameterSet
49  std::unique_ptr<edm::ParameterSet> parameterSet() const;
50 
51  // makes a new (copy) of a ProcessDesc
52  // For backward compatibility only. Remove when no longer needed.
53  std::unique_ptr<edm::ProcessDesc> processDesc() const;
54 
55 private:
56  void prepareToRead();
57  void read(std::string const& config);
58  void readFile(std::string const& fileName);
59  void readString(std::string const& pyConfig);
60 
63 };
64 
65 #endif
Python11ParameterSet theProcessPSet
std::string dump() const
std::unique_ptr< edm::ParameterSet > parameterSet() const
Definition: config.py:1
PyBind11InterpreterSentry theInterpreter
void readFile(std::string const &fileName)
PyBind11InterpreterSentry(bool ownsInterpreter)
void read(std::string const &config)
Python11ParameterSet & pset()
void readString(std::string const &pyConfig)
HLT enums.
Python11ParameterSet newPSet() const
std::unique_ptr< edm::ProcessDesc > processDesc() const