PixelLightAPI
.
|
Class for running and controlling an external process. More...
#include <Process.h>
Public Member Functions | |
Process () | |
Constructor. | |
PLCORE_API | ~Process () |
Destructor. | |
PLCORE_API void | Execute (const String &sCommand, const String &sArguments) |
Starts a process. | |
PLCORE_API void | ExecuteRedirectIO (const String &sCommand, const String &sArguments) |
Starts a process with redirected input/output. | |
PLCORE_API void | ExecuteRedirectIO (const String &sCommand, const String &sArguments, const Pipe &cPipeIn, const Pipe &cPipeOut, const Pipe &cPipeErr) |
Starts a process with redirected input/output. | |
PLCORE_API void | ExecuteRedirectIO (const String &sCommand, const String &sArguments, handle hPipeIn, handle hPipeOut, handle hPipeErr) |
Starts a process with redirected input/output. | |
PLCORE_API bool | IsRunning () const |
Returns if the process is running. | |
PLCORE_API void | Terminate () |
Terminates the process. | |
File & | GetInput () |
Get input stream. | |
File & | GetOutput () |
Get output stream. | |
File & | GetError () |
Get error stream. | |
const Pipe & | GetPipeInput () const |
Get input pipe. | |
const Pipe & | GetPipeOutput () const |
Get output pipe. | |
const Pipe & | GetPipeError () const |
Get error pipe. |
Class for running and controlling an external process.
PLCore::Process::Process | ( | ) | [inline] |
PLCORE_API PLCore::Process::~Process | ( | ) |
Destructor.
PLCORE_API void PLCore::Process::Execute | ( | const String & | sCommand, |
const String & | sArguments | ||
) |
Starts a process.
[in] | sCommand | Command to run |
[in] | sArguments | Arguments for the command |
PLCORE_API void PLCore::Process::ExecuteRedirectIO | ( | const String & | sCommand, |
const String & | sArguments | ||
) |
Starts a process with redirected input/output.
[in] | sCommand | Command to run |
[in] | sArguments | Arguments for the command |
PLCORE_API void PLCore::Process::ExecuteRedirectIO | ( | const String & | sCommand, |
const String & | sArguments, | ||
handle | hPipeIn, | ||
handle | hPipeOut, | ||
handle | hPipeErr | ||
) |
Starts a process with redirected input/output.
[in] | sCommand | Command to run |
[in] | sArguments | Arguments for the command |
[in] | hPipeIn | System handle for the input pipe |
[in] | hPipeOut | System handle for the output pipe |
[in] | hPipeErr | System handle for the error pipe |
PLCORE_API bool PLCore::Process::IsRunning | ( | ) | const |
Returns if the process is running.
PLCORE_API void PLCore::Process::Terminate | ( | ) |
Terminates the process.
File & PLCore::Process::GetInput | ( | ) | [inline] |
Get input stream.
File & PLCore::Process::GetOutput | ( | ) | [inline] |
Get output stream.
File & PLCore::Process::GetError | ( | ) | [inline] |
Get error stream.
const Pipe & PLCore::Process::GetPipeInput | ( | ) | const [inline] |
Get input pipe.
const Pipe & PLCore::Process::GetPipeOutput | ( | ) | const [inline] |
Get output pipe.
const Pipe & PLCore::Process::GetPipeError | ( | ) | const [inline] |
Get error pipe.
|