Static Public Member Functions
|static bool ||eval (QString command, QString &result)|
| ||Eval a python statement. |
|static bool ||isValid ()|
| ||returns true if the runner has an instance (and thus is able to run commands) |
|static bool ||run (QString command, QString messageOnError=QString())|
| ||execute a python statement |
|static void ||setInstance (QgsPythonRunner *runner)|
| ||assign an instance of python runner so that run() can be used. |
Protected Member Functions
| ||QgsPythonRunner ()|
| ||protected constructor: can be instantiated only from children |
|virtual ||~QgsPythonRunner ()|
|virtual bool ||evalCommand (QString command, QString &result)=0|
|virtual bool ||runCommand (QString command, QString messageOnError=QString())=0|
Static Protected Attributes
|static QgsPythonRunner * ||mInstance = NULL|
Utility class for running python commands from various parts of QGIS.
There is no direct python support in the core library, so it is expected that application with python support creates a subclass that implements pure virtual function(s) during the initialization. The static methods will then work as expected.
Added in QGIS v?
Definition at line 29 of file qgspythonrunner.h.