|
ProcLib 0.0.1.0
A cross-platform process runner.
|
Describes the outcome of launching and running a process. More...
#include <process.hxx>
Public Types | |
| enum class | Status { Success , NonZeroExit , FailedToStart , Terminated , Killed , Crashed , Error } |
| The final status of the process. More... | |
Public Member Functions | |
| auto | succeeded () const -> bool |
Public Attributes | |
| Status | status = Status::Error |
| The process completion status. | |
| int32_t | exitCode = -1 |
| The exit code returned by the process. A value of -1 indicates that no exit code was available. | |
| std::string | message |
| Additional information about a process failure. | |
Describes the outcome of launching and running a process.
|
strong |
The final status of the process.
|
inline |
Determines whether the process completed successfully.
| int32_t pl::ProcessResult::exitCode = -1 |
The exit code returned by the process. A value of -1 indicates that no exit code was available.
| std::string pl::ProcessResult::message |
Additional information about a process failure.
| Status pl::ProcessResult::status = Status::Error |
The process completion status.