1 #ifndef _MUSSA_PYTHON_HPP_
2 #define _MUSSA_PYTHON_HPP_
3 #include <boost/python.hpp>
6 extern "C" void initmussa();
7 extern "C" void initmussaqui();
9 //! Create a singleton class to manage our reference to the python interpreter
14 //! pass multi-statement code block to the python interpreter
15 void run(std::string);
16 //! pass single expression to the python interpreter and return the result
17 boost::python::object eval(std::string);
18 //! use InteractiveConsole for readloop
20 //! launch fgets based read-eval-print loop tied to the provided FILE pointer
21 void simple_interpreter(FILE *fp=stdin);
22 //! return an object in the python namespace
23 boost::python::object operator[](std::string);
26 boost::python::object main_namespace;
29 //! return a reference to a single mussa python interpreter
30 MussaPython& get_py();
32 #endif // _MUSSA_PYTHON_HPP_