30 #ifndef ENGINE_PYTHON_SCIRUNPYTHONMODULE_H
31 #define ENGINE_PYTHON_SCIRUNPYTHONMODULE_H
33 #include <boost/python.hpp>
40 using namespace SCIRun;
42 boost::python::class_<PyPort, boost::shared_ptr<PyPort>, boost::noncopyable>(
"SCIRun::PyPort", boost::python::no_init)
46 .def(boost::python::self >> boost::python::self)
50 boost::python::class_<PyPorts, boost::shared_ptr<PyPorts>, boost::noncopyable>(
"SCIRun::PyPorts", boost::python::no_init)
56 boost::python::class_<PyModule, boost::shared_ptr<PyModule>, boost::noncopyable>(
"SCIRun::PyModule", boost::python::no_init)
static std::string loadNetwork(const std::string &filename)
Definition: NetworkEditorPythonAPI.cc:131
virtual size_t size() const =0
static std::string quit(bool force)
Definition: NetworkEditorPythonAPI.cc:141
BOOST_PYTHON_MODULE(interpreter)
Definition: PythonInterpreter.cc:194
static std::vector< boost::shared_ptr< PyModule > > modules()
Definition: NetworkEditorPythonAPI.cc:106
virtual void setattr(const std::string &name, boost::python::object object)=0
virtual boost::shared_ptr< PyPort > getattr(const std::string &name)=0
virtual std::vector< std::string > stateVars() const =0
virtual boost::shared_ptr< class PyPorts > output()=0
virtual std::string name() const =0
static boost::shared_ptr< PyModule > addModule(const std::string &name)
Definition: NetworkEditorPythonAPI.cc:78
virtual bool isInput() const =0
static std::string removeModule(const std::string &id)
Definition: NetworkEditorPythonAPI.cc:93
virtual boost::shared_ptr< class PyPorts > input()=0
static std::string saveNetwork(const std::string &filename)
Definition: NetworkEditorPythonAPI.cc:121
virtual boost::shared_ptr< PyPort > getitem(int index)=0
static std::string executeAll()
Definition: NetworkEditorPythonAPI.cc:111
virtual void connect(const PyPort &other) const =0
virtual std::string type() const =0
virtual std::string id() const =0
virtual boost::python::object getattr(const std::string &name)=0