ProcLib 0.0.1.0
A cross-platform process runner.
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
pl Namespace Reference

Classes

struct  PlatformExitStatus
 
class  PlatformProcess
 A platform-specific process implementation. More...
 
class  Process
 Forward declaration. More...
 
struct  ProcessResult
 Describes the outcome of launching and running a process. More...
 

Enumerations

enum class  ErrorCode { NoError , ProcessAlreadyStarted , ProcessNotStarted }
 The possible errors relating to the reading or writing of PAK files. More...
 
enum class  PlatformExitKind { Exited , Signaled , Exited , Signaled }
 The kind of raw exit status reported by the OS for a completed process. More...
 
enum class  PlatformExitKind { Exited , Signaled , Exited , Signaled }
 The kind of raw exit status reported by the OS for a completed process. More...
 

Functions

auto makeErrorCode (ErrorCode const code) -> std::error_code
 

Enumeration Type Documentation

◆ ErrorCode

enum class pl::ErrorCode
strong

The possible errors relating to the reading or writing of PAK files.

Enumerator
NoError 

No error has occurred.

ProcessAlreadyStarted 

The process has already been started and cannot be started again.

ProcessNotStarted 

The process has not been started.

◆ PlatformExitKind [1/2]

enum class pl::PlatformExitKind
strong

The kind of raw exit status reported by the OS for a completed process.

Enumerator
Exited 

The process ran to completion, or was force-stopped with an OS-reported exit code.

Signaled 

The process was stopped by a signal, with no OS-reported exit code.

Exited 

The process ran to completion, or was force-stopped with an OS-reported exit code.

Signaled 

The process was stopped by a signal, with no OS-reported exit code. Never reported on Windows.

◆ PlatformExitKind [2/2]

enum class pl::PlatformExitKind
strong

The kind of raw exit status reported by the OS for a completed process.

Enumerator
Exited 

The process ran to completion, or was force-stopped with an OS-reported exit code.

Signaled 

The process was stopped by a signal, with no OS-reported exit code.

Exited 

The process ran to completion, or was force-stopped with an OS-reported exit code.

Signaled 

The process was stopped by a signal, with no OS-reported exit code. Never reported on Windows.

Function Documentation

◆ makeErrorCode()

auto pl::makeErrorCode ( ErrorCode const  code) -> std::error_code

Create an error code.

Parameters
codeThe pak-io related error code.
Returns
A valid error code.