#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, bool isFile) | |
PyBind11ProcessDesc (std::string const &config, bool isFile, const std::vector< std::string > &args) | |
~PyBind11ProcessDesc () | |
Private Member Functions | |
void | prepareToRead () |
void | read (std::string const &config, bool isFile) |
void | readFile (std::string const &fileName) |
void | readString (std::string const &pyConfig) |
Private Attributes | |
PyBind11InterpreterSentry | theInterpreter |
Python11ParameterSet | theProcessPSet |
Definition at line 26 of file PyBind11ProcessDesc.h.
PyBind11ProcessDesc::PyBind11ProcessDesc | ( | ) |
Definition at line 26 of file PyBind11ProcessDesc.cc.
PyBind11ProcessDesc::PyBind11ProcessDesc | ( | std::string const & | config, |
bool | isFile | ||
) |
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 28 of file PyBind11ProcessDesc.cc.
References edm::python::initializePyBind11Module(), eostools::isFile(), prepareToRead(), and read().
PyBind11ProcessDesc::PyBind11ProcessDesc | ( | std::string const & | config, |
bool | isFile, | ||
const std::vector< std::string > & | args | ||
) |
Definition at line 35 of file PyBind11ProcessDesc.cc.
References writedatasetfile::args, mps_fire::i, edm::python::initializePyBind11Module(), eostools::isFile(), prepareToRead(), and read().
|
default |
std::string PyBind11ProcessDesc::dump | ( | void | ) | const |
Definition at line 93 of file PyBind11ProcessDesc.cc.
References Python11ParameterSet::dump(), and theProcessPSet.
Referenced by PYBIND11_MODULE().
|
inline |
Definition at line 42 of file PyBind11ProcessDesc.h.
Referenced by PYBIND11_MODULE().
std::unique_ptr< edm::ParameterSet > PyBind11ProcessDesc::parameterSet | ( | ) | const |
Definition at line 89 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 59 of file PyBind11ProcessDesc.cc.
References cond::persistency::import(), PyBind11InterpreterSentry::mainModule, theInterpreter, and theProcessPSet.
Referenced by PyBind11ProcessDesc().
std::unique_ptr< edm::ProcessDesc > PyBind11ProcessDesc::processDesc | ( | ) | const |
Definition at line 100 of file PyBind11ProcessDesc.cc.
References parameterSet().
Referenced by main().
|
inline |
Definition at line 44 of file PyBind11ProcessDesc.h.
References theProcessPSet.
Referenced by PYBIND11_MODULE().
|
private |
Definition at line 66 of file PyBind11ProcessDesc.cc.
References MillePedeFileConverter_cfg::e, eostools::isFile(), edm::pythonToCppException(), readFile(), and readString().
Referenced by edmIntegrityCheck.PublishToFileSystem::get(), and PyBind11ProcessDesc().
|
private |
Definition at line 77 of file PyBind11ProcessDesc.cc.
References mps_check::command, MillePedeFileConverter_cfg::fileName, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by read().
|
private |
Definition at line 83 of file PyBind11ProcessDesc.cc.
References mps_check::command, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by read().
|
private |
Definition at line 62 of file PyBind11ProcessDesc.h.
Referenced by prepareToRead().
|
private |
Definition at line 61 of file PyBind11ProcessDesc.h.
Referenced by dump(), parameterSet(), prepareToRead(), and pset().