20#include <boost/python.hpp>
57 boost::python::object &
pyinst();
69 boost::python::object itsMainModule, itsMainNamespace, itsInstance;
70 std::string itsConstructionError;
71 mutable std::mutex itsMtx;
Helper class to run python code from C++.
boost::python::object & mainModule()
Get the main module.
PythonWrapper()
Default constructor. Will need to call pythonload() later.
void pythonload(std::string const &path)
Init from path if default constructor was used.
boost::python::object & pyinst()
Get the python class pyinst, or throw if construction error occurred (e.g., file not found)
std::string const & constructionError() const
Get the construction error if any, or empty string.
virtual ~PythonWrapper()
Destructor.
boost::python::object & mainNamespace()
Get the main namespace.
Main namespace for all JeVois classes and functions.