![]() |
![]() |
#include <PythonProcessDesc.h>
Public Member Functions | |
void | addService (PythonParameterSet &pset) |
std::string | dump () const |
PythonParameterSet | newPSet () const |
boost::shared_ptr < edm::ProcessDesc > | processDesc () |
PythonProcessDesc () | |
PythonProcessDesc (std::string const &config) | |
PythonProcessDesc (std::string const &config, int argc, char *argv[]) | |
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 | |
boost::python::object | theMainModule |
boost::python::object | theMainNamespace |
PythonParameterSet | theProcessPSet |
std::vector< PythonParameterSet > | theServices |
Definition at line 16 of file PythonProcessDesc.h.
PythonProcessDesc::PythonProcessDesc | ( | ) |
Definition at line 11 of file PythonProcessDesc.cc.
PythonProcessDesc::PythonProcessDesc | ( | 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 20 of file PythonProcessDesc.cc.
References prepareToRead(), and read().
PythonProcessDesc::PythonProcessDesc | ( | std::string const & | config, |
int | argc, | ||
char * | argv[] | ||
) |
Definition at line 31 of file PythonProcessDesc.cc.
References prepareToRead(), and read().
|
inline |
Definition at line 31 of file PythonProcessDesc.h.
References theServices.
Referenced by BOOST_PYTHON_MODULE().
std::string PythonProcessDesc::dump | ( | void | ) | const |
Definition at line 117 of file PythonProcessDesc.cc.
References PythonParameterSet::dump(), theProcessPSet, and theServices.
Referenced by BOOST_PYTHON_MODULE().
|
inline |
Definition at line 33 of file PythonProcessDesc.h.
Referenced by BOOST_PYTHON_MODULE().
|
private |
Definition at line 44 of file PythonProcessDesc.cc.
References edm::python::initializeModule(), dbtoconf::object, theMainModule, theMainNamespace, and theProcessPSet.
Referenced by PythonProcessDesc().
boost::shared_ptr< edm::ProcessDesc > PythonProcessDesc::processDesc | ( | ) |
Definition at line 106 of file PythonProcessDesc.cc.
References PythonParameterSet::pset(), query::result, theProcessPSet, and theServices.
Referenced by edm::EventProcessor::EventProcessor(), evf::FWEPWrapper::init(), main(), edm::makeParameterSets(), stor::parseStreamConfiguration(), and edm::readConfig().
|
private |
Definition at line 56 of file PythonProcessDesc.cc.
References edm::pythonToCppException(), readFile(), and readString().
Referenced by PythonProcessDesc().
|
private |
Definition at line 76 of file PythonProcessDesc.cc.
References edmPickEvents::command, and theMainNamespace.
Referenced by read().
|
private |
Definition at line 95 of file PythonProcessDesc.cc.
References edmPickEvents::command, and theMainNamespace.
Referenced by read().
|
private |
Definition at line 48 of file PythonProcessDesc.h.
Referenced by prepareToRead().
|
private |
Definition at line 49 of file PythonProcessDesc.h.
Referenced by prepareToRead(), readFile(), and readString().
|
private |
Definition at line 46 of file PythonProcessDesc.h.
Referenced by dump(), prepareToRead(), and processDesc().
|
private |
Definition at line 47 of file PythonProcessDesc.h.
Referenced by addService(), dump(), and processDesc().