test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PythonProcessDesc.h
Go to the documentation of this file.
1 #ifndef FWCore_PythonParameterSet_PythonProcessDesc_h
2 #define FWCore_PythonParameterSet_PythonProcessDesc_h
3 
6 
7 #include <memory>
8 
9 #include <string>
10 #include <vector>
11 
12 namespace edm {
13  class ParameterSet;
14  class ProcessDesc;
15 }
16 
18 public:
28 
29  PythonProcessDesc(std::string const& config, int argc, char * argv[]);
30 
32 
33  std::string dump() const;
34 
35  // makes a new (copy) of the ParameterSet
36  std::shared_ptr<edm::ParameterSet> parameterSet();
37 
38  // makes a new (copy) of a ProcessDesc
39  // For backward compatibility only. Remove when no longer needed.
40  std::shared_ptr<edm::ProcessDesc> processDesc();
41 
42 private:
43  void prepareToRead();
44  void read(std::string const& config);
45  void readFile(std::string const& fileName);
46  void readString(std::string const& pyConfig);
47 
49  boost::python::object theMainModule;
50  boost::python::object theMainNamespace;
51 };
52 
53 #endif
boost::python::object theMainModule
PythonParameterSet theProcessPSet
void readFile(std::string const &fileName)
std::shared_ptr< edm::ProcessDesc > processDesc()
void read(std::string const &config)
boost::python::object theMainNamespace
std::shared_ptr< edm::ParameterSet > parameterSet()
std::string dump() const
tuple argc
Definition: dir2webdir.py:38
void readString(std::string const &pyConfig)
PythonParameterSet newPSet() const