#include <Process.hpp>
Signals | |
void | error (QProcess::ProcessError) |
Emitted if a process error occurs. More... | |
void | error (QProcess::ProcessError, const std::string &description) |
Emitted if a process error occurs, with extra description of error. More... | |
void | finished (int exitcode, QProcess::ExitStatus) |
Emitted after the process has finished. More... | |
void | outputFileChanged (const openstudio::runmanager::FileInfo &file) |
Emitted after an output file has changed. More... | |
void | standardErrDataAdded (const std::string &data) |
Emitted after stderr data has been created. More... | |
void | standardOutDataAdded (const std::string &data) |
Emitted after stdout data has been created. More... | |
void | started () |
Emitted when the process is fully running. More... | |
void | statusChanged (const openstudio::runmanager::AdvancedStatus &s) |
Emitted whenever the status changes. More... | |
Public Member Functions | |
virtual void | cleanup (const std::vector< std::string > &t_files)=0 |
Removes the vector of output file names passed in from the output directory. More... | |
virtual void | cleanUpRequiredFiles ()=0 |
Request that the process clean up files which were copied into the run directory because the were required to run the process but are no longer necessary now that the process has completed. More... | |
virtual std::vector< FileInfo > | inputFiles () const =0 |
virtual std::vector< FileInfo > | outputFiles () const =0 |
Process () | |
virtual bool | running () const =0 |
virtual void | start ()=0 |
Requests that the process start. More... | |
openstudio::runmanager::AdvancedStatus | status () const |
void | stop () |
request that the process stop More... | |
bool | stopped () const |
virtual void | waitForFinished ()=0 |
Blocks until the process has finished. More... | |
virtual | ~Process () |
Protected Member Functions | |
void | emitOutputFileChanged (const openstudio::runmanager::FileInfo &file) |
Emit the outputFileChanged(const openstudio::runmanager::FileInfo&) signal. More... | |
void | emitStatusChanged (const openstudio::runmanager::AdvancedStatus &status) |
Emit the statusChanged signal. More... | |
Base class for local processes.
openstudio::runmanager::Process::Process | ( | ) |
|
inlinevirtual |
|
pure virtual |
Removes the vector of output file names passed in from the output directory.
|
pure virtual |
Request that the process clean up files which were copied into the run directory because the were required to run the process but are no longer necessary now that the process has completed.
|
protected |
Emit the outputFileChanged(const openstudio::runmanager::FileInfo&) signal.
|
protected |
Emit the statusChanged signal.
|
signal |
Emitted if a process error occurs.
|
signal |
Emitted if a process error occurs, with extra description of error.
|
signal |
Emitted after the process has finished.
|
pure virtual |
|
signal |
Emitted after an output file has changed.
|
pure virtual |
|
pure virtual |
|
signal |
Emitted after stderr data has been created.
|
signal |
Emitted after stdout data has been created.
|
pure virtual |
Requests that the process start.
|
signal |
Emitted when the process is fully running.
openstudio::runmanager::AdvancedStatus openstudio::runmanager::Process::status | ( | ) | const |
|
signal |
Emitted whenever the status changes.
void openstudio::runmanager::Process::stop | ( | ) |
request that the process stop
bool openstudio::runmanager::Process::stopped | ( | ) | const |
|
pure virtual |
Blocks until the process has finished.