Cross-platform utility class for wrapping and launching external processes.
More...
#include <ExternalProcess.h>
|
| | ExternalProcess (const agx::String &processTag="") |
| | Default constructor.
|
| |
| | ExternalProcess (const ExternalProcess &)=delete |
| |
| int | closeAndWaitForExit () |
| | Will try to close the external process and wait for it's exit.
|
| |
| bool | isRunning () const |
| | Return true if the process is still running. False it not.
|
| |
| void | killProcess () |
| | Will kill the external process by forcing a close.
|
| |
| bool | startProcess (const agx::StringVector &commandVector, const agx::String &workingDir, agx::UInt startupWaitTimeMs=50) |
| |
| int | waitUntilExit () |
| | Will wait until the external process has exited.
|
| |
| | Referenced () |
| | Default constructor.
|
| |
| | Referenced (const Referenced &) |
| |
| template<typename T > |
| T * | as () |
| | Subclass casting.
|
| |
| template<typename T > |
| const T * | as () const |
| |
| template<typename T > |
| T * | asSafe () |
| | Safe subclass casting, return nullptr if template type does not match.
|
| |
| template<typename T > |
| const T * | asSafe () const |
| |
| int | getReferenceCount () const |
| |
| template<typename T > |
| bool | is () const |
| | Subclass test.
|
| |
| Referenced & | operator= (const Referenced &) |
| | Assignment operator. Will increment the number of references to the referenced object.
|
| |
| void | reference (void *ptr=nullptr) const |
| | Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
|
| |
| void | unreference (void *ptr=nullptr) const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it.
|
| |
| void | unreference_nodelete () const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it.
|
| |
Cross-platform utility class for wrapping and launching external processes.
Definition at line 40 of file ExternalProcess.h.
◆ ExternalProcess() [1/2]
| agxOSG::ExternalProcess::ExternalProcess |
( |
const agx::String & |
processTag = "" | ) |
|
◆ ExternalProcess() [2/2]
◆ ~ExternalProcess()
| virtual agxOSG::ExternalProcess::~ExternalProcess |
( |
| ) |
|
|
protectedvirtual |
◆ closeAndWaitForExit()
| int agxOSG::ExternalProcess::closeAndWaitForExit |
( |
| ) |
|
Will try to close the external process and wait for it's exit.
- Returns
- The exit code of the process.
◆ isRunning()
| bool agxOSG::ExternalProcess::isRunning |
( |
| ) |
const |
Return true if the process is still running. False it not.
◆ killProcess()
| void agxOSG::ExternalProcess::killProcess |
( |
| ) |
|
Will kill the external process by forcing a close.
◆ startProcess() [1/2]
◆ startProcess() [2/2]
◆ waitUntilExit()
| int agxOSG::ExternalProcess::waitUntilExit |
( |
| ) |
|
Will wait until the external process has exited.
Return the exit code when the process is done.
- Returns
- The exit code of the process
The documentation for this class was generated from the following file: