My Project
|
Execute Python script. This class must not be called from Python. More...
#include <PyRunOnCPP.hh>
Public Member Functions | |
PyRunOnCPP () | |
~PyRunOnCPP () | |
Int4 | PyRun (vector< string > script) |
Int4 | PyRun (string script) |
Execute Python script. This class must not be called from Python.
This class must not be called from Python !!
This class executes python scripts with C-library provided by Python development tools. Because this class uses the library of python development environment, python scripts are executed in the same process of this class.
Constructor
Destructor. This method terminates the python process connected in this class.
Int4 PyRunOnCPP::PyRun | ( | vector< string > | script | ) |
Python script, the argument, is passed to the python called by the constructor.
Int4 PyRunOnCPP::PyRun | ( | string | script | ) |
Python script, the argument, is passed to the python called by the constructor. The argument should not contain indents. If you want to input "for-loop" or "if", you should use "PyRun(vector<string>)".