#include <PyBind11ProcessDesc.h>
Public Member Functions | |
std::string | dump () const |
Python11ParameterSet | newPSet () const |
std::unique_ptr< edm::ParameterSet > | parameterSet () const |
std::unique_ptr< edm::ProcessDesc > | processDesc () const |
Python11ParameterSet & | pset () |
PyBind11ProcessDesc () | |
PyBind11ProcessDesc (std::string const &config) | |
PyBind11ProcessDesc (std::string const &config, int argc, char *argv[]) | |
~PyBind11ProcessDesc () | |
Private Member Functions | |
void | prepareToRead () |
void | read (std::string const &config) |
void | readFile (std::string const &fileName) |
void | readString (std::string const &pyConfig) |
Private Attributes | |
pybind11::object | theMainModule |
bool | theOwnsInterpreter |
Python11ParameterSet | theProcessPSet |
Definition at line 16 of file PyBind11ProcessDesc.h.
PyBind11ProcessDesc::PyBind11ProcessDesc | ( | ) |
Definition at line 12 of file PyBind11ProcessDesc.cc.
PyBind11ProcessDesc::PyBind11ProcessDesc | ( | std::string const & | config | ) |
This constructor will parse the given file or string and create two objects in python-land: a PythonProcessDesc named 'processDesc' a PythonParameterSet named 'processPSet' It decides whether it's a file or string by seeing if it ends in '.py'
Definition at line 14 of file PyBind11ProcessDesc.cc.
References edm::python::initializePyBind11Module(), prepareToRead(), and read().
PyBind11ProcessDesc::PyBind11ProcessDesc | ( | std::string const & | config, |
int | argc, | ||
char * | argv[] | ||
) |
Definition at line 22 of file PyBind11ProcessDesc.cc.
References dir2webdir::argc, cmsBatch::argv, mps_fire::i, edm::python::initializePyBind11Module(), prepareToRead(), and read().
PyBind11ProcessDesc::~PyBind11ProcessDesc | ( | ) |
Definition at line 53 of file PyBind11ProcessDesc.cc.
References resolutioncreator_cfi::object, theMainModule, and theOwnsInterpreter.
std::string PyBind11ProcessDesc::dump | ( | void | ) | const |
Definition at line 96 of file PyBind11ProcessDesc.cc.
References Python11ParameterSet::dump(), and theProcessPSet.
Referenced by PYBIND11_MODULE().
|
inline |
Definition at line 32 of file PyBind11ProcessDesc.h.
Referenced by PYBIND11_MODULE().
std::unique_ptr< edm::ParameterSet > PyBind11ProcessDesc::parameterSet | ( | ) | const |
Definition at line 92 of file PyBind11ProcessDesc.cc.
References Python11ParameterSet::pset(), and theProcessPSet.
Referenced by edm::getPSetFromConfig(), edm::cmspybind11::makeParameterSets(), processDesc(), and edm::cmspybind11::readConfig().
|
private |
Definition at line 60 of file PyBind11ProcessDesc.cc.
References cond::persistency::import(), theMainModule, and theProcessPSet.
Referenced by PyBind11ProcessDesc().
std::unique_ptr< edm::ProcessDesc > PyBind11ProcessDesc::processDesc | ( | ) | const |
Definition at line 103 of file PyBind11ProcessDesc.cc.
References parameterSet().
Referenced by main().
|
inline |
Definition at line 34 of file PyBind11ProcessDesc.h.
References theProcessPSet.
Referenced by PYBIND11_MODULE().
|
private |
Definition at line 67 of file PyBind11ProcessDesc.cc.
References MillePedeFileConverter_cfg::e, edm::pythonToCppException(), readFile(), and readString().
Referenced by edmIntegrityCheck.PublishToFileSystem::get(), and PyBind11ProcessDesc().
|
private |
Definition at line 80 of file PyBind11ProcessDesc.cc.
References mps_check::command, MillePedeFileConverter_cfg::fileName, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by read().
|
private |
Definition at line 86 of file PyBind11ProcessDesc.cc.
References mps_check::command, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by read().
|
private |
Definition at line 52 of file PyBind11ProcessDesc.h.
Referenced by prepareToRead(), and ~PyBind11ProcessDesc().
|
private |
Definition at line 53 of file PyBind11ProcessDesc.h.
Referenced by ~PyBind11ProcessDesc().
|
private |
Definition at line 51 of file PyBind11ProcessDesc.h.
Referenced by dump(), parameterSet(), prepareToRead(), and pset().