VHISTlib  1.84.0.3018
Public Types | Signals | Public Member Functions
vhist::VhistRunner Class Reference

Executes an VHIST argfile using vhistadd. More...

#include <vhistrunner.h>

Inheritance diagram for vhist::VhistRunner:
vhist::LogSource vhist::VhistaddRunner vhist::VhistdelRunner

List of all members.

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

Detailed Description

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.


Member Enumeration Documentation

Errorcodes generated by VhistaddRunner.

Enumerator:
VHISTADD_NOT_FOUND 

no vhistadd binary was found in the search path.

VHISTADD_FAILED_TO_START 

vhistadd could not be started successfully.


Member Function Documentation

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.

Parameters:
[in]pathsA list of paths, which should be searched for a "m_vhistrun" binary.
Note:
On Mac OS X, the reference executable refers to the binary under Contents/MacOSX in the application bundle, not the bundle itself.
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.

Parameters:
[in]stateIf true, py2exe support is activated.

The documentation for this class was generated from the following files:

VHISTlib 1.84.0.3018 of Jun 28 2013, generated by doxygen.