VHISTlib
1.84.0.3018
|
Executes an VHIST argfile using vhistadd. More...
#include <vhistrunner.h>
Public Types | |
enum | VHISTADD_ERROR { VHISTADD_NOT_FOUND = -1000, VHISTADD_FAILED_TO_START = -1001 } |
Errorcodes generated by VhistaddRunner. More... | |
Signals | |
void | intercept () |
This signal is emitted regularly while "m_vhistrun" is running. | |
Public Member Functions | |
VhistRunner (const QString &vhistrunstump, QObject *listener=NULL) | |
Creates a new VhistRunner object. | |
virtual | ~VhistRunner () |
Destroys the VhistRunner object. | |
void | setSearchPaths (const QStringList &paths) |
Sets the search path to paths. | |
void | setUsePy2Exe (bool state) |
Activates or deactivates py2exe support. | |
QString | findPython () |
QString | findVhistrun () |
bool | getUsePy2Exe () const |
void | clearOutputRest () |
void | processOutputLine (const QString &line) |
void | processOutput (const QString &output, bool finish=false) |
virtual int | runProcess (const QString &argfile)=0 |
Executes an VHIST argfile using vhistadd.
The class searches for a vhistadd executable in the given path list. Both, the native python version and the py2exe version of vhistadd are supported.
Errorcodes generated by VhistaddRunner.
void vhist::VhistRunner::intercept | ( | ) | [signal] |
This signal is emitted regularly while "m_vhistrun" is running.
It can be used to handle events in the user interface.
void VhistRunner::setSearchPaths | ( | const QStringList & | paths | ) |
Sets the search path to paths.
VhistRunner searches the given paths in the given order for a vhist executable. The paths can be either absolute or relative to the executable, which uses this library.
VhistRunner will use the first executable it finds in the search path. By default, VhistRunner will only search in the directory of the binary.
[in] | paths | A list of paths, which should be searched for a "m_vhistrun" binary. |
void VhistRunner::setUsePy2Exe | ( | bool | state | ) |
Activates or deactivates py2exe support.
If py2exe support is activated, VhistRunner will search for a file named m_vhistrunstump.exe inside the search path. Otherwise, it will search for m_vhistrunstump.py.
[in] | state | If true , py2exe support is activated. |