SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SDL::ProcessRef Struct Reference

Semi-safe reference for Process.

Inheritance diagram for SDL::ProcessRef:
Inheritance graph
[legend]
Collaboration diagram for SDL::ProcessRef:
Collaboration graph
[legend]

Public Member Functions

 ProcessRef (ProcessParam resource)
 Constructs from ProcessParam. More...
 
 ProcessRef (const ProcessRef &other)
 Copy constructor.
 
 ~ProcessRef ()
 Destructor.
 
- Public Member Functions inherited from SDL::Process
constexpr Process ()=default
 Default ctor.
 
constexpr Process (const ProcessRaw resource)
 Constructs from ProcessParam. More...
 
constexpr Process (const Process &other)=delete
 Copy constructor.
 
constexpr Process (Process &&other)
 Move constructor.
 
constexpr Process (const ProcessRef &other)=delete
 
constexpr Process (ProcessRef &&other)=delete
 
 Process (const char *const *args, bool pipe_stdio)
 Create a new process. More...
 
 Process (PropertiesParam props)
 Create a new process with the specified properties. More...
 
 ~Process ()
 Destructor.
 
Processoperator= (Process other)
 Assignment operator.
 
constexpr ProcessRaw get () const
 Retrieves underlying ProcessRaw.
 
constexpr ProcessRaw release ()
 Retrieves underlying ProcessRaw and clear this.
 
constexpr auto operator<=> (const Process &other) const =default
 Comparison.
 
constexpr bool operator== (std::nullptr_t _) const
 Comparison.
 
constexpr operator bool () const
 Converts to bool.
 
constexpr operator ProcessParam () const
 Converts to ProcessParam.
 
void Destroy ()
 Destroy a previously created process object. More...
 
PropertiesRef GetProperties () const
 Get the properties associated with a process. More...
 
StringResult Read (int *exitcode=nullptr)
 Read all the output from a process. More...
 
template<class T >
OwnArray< T > ReadAs (int *exitcode=nullptr)
 Read all the output from a process. More...
 
IOStreamRef GetInput ()
 Get the IOStream associated with process standard input. More...
 
IOStreamRef GetOutput ()
 Get the IOStream associated with process standard output. More...
 
void Kill (bool force)
 Stop a process. More...
 
bool Wait (bool block, int *exitcode)
 Wait for a process to finish. More...
 

Constructor & Destructor Documentation

◆ ProcessRef()

SDL::ProcessRef::ProcessRef ( ProcessParam  resource)
inline
Parameters
resourcea ProcessRaw or Process.

This does not takes ownership!


The documentation for this struct was generated from the following file: