#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 | |
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 | ) |
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(), prepareToRead(), and read().
PyBind11ProcessDesc::PyBind11ProcessDesc | ( | std::string const & | config, |
int | argc, | ||
char * | argv[] | ||
) |
Definition at line 34 of file PyBind11ProcessDesc.cc.
References dir2webdir::argc, GCPpyPlots::argv, mps_fire::i, edm::python::initializePyBind11Module(), prepareToRead(), and read().
|
default |
std::string PyBind11ProcessDesc::dump | ( | void | ) | const |
Definition at line 101 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 97 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 65 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 108 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 72 of file PyBind11ProcessDesc.cc.
References MillePedeFileConverter_cfg::e, edm::pythonToCppException(), readFile(), and readString().
Referenced by edmIntegrityCheck.PublishToFileSystem::get(), and PyBind11ProcessDesc().
|
private |
Definition at line 85 of file PyBind11ProcessDesc.cc.
References mps_check::command, MillePedeFileConverter_cfg::fileName, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by read().
|
private |
Definition at line 91 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().