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

Handle to an owned process. More...

Inheritance diagram for SDL::Process:
Inheritance graph
[legend]

Public Member Functions

constexpr Process (SDL_Process *resource={})
 Constructs from the underlying resource.
 
constexpr Process (const Process &other)=delete
 
constexpr Process (Process &&other)=default
 Move constructor.
 
 ~Process ()
 Frees up resource when object goes out of scope.
 
Processoperator= (Process other)
 Assignment operator.
 
constexpr ProcessRef (const ProcessRef &other)
 Copy constructor.
 
constexpr ProcessRef (ProcessRef &&other)
 Move constructor.
 
- Public Member Functions inherited from SDL::ProcessRef
constexpr ProcessRef (const ProcessRef &other)
 Copy constructor.
 
constexpr ProcessRef (ProcessRef &&other)
 Move constructor.
 
constexpr ~ProcessRef ()=default
 Default constructor.
 
ProcessRefoperator= (ProcessRef other)
 Assignment operator.
 
void reset (SDL_Process *newResource={})
 Destroy a previously created process object.
 
 ProcessBase (const char *const *args, bool pipe_stdio)
 Create a new process.
 
 ProcessBase (PropertiesBase &props)
 Create a new process with the specified properties.
 
- Public Member Functions inherited from SDL::ProcessBase
 ProcessBase (const char *const *args, bool pipe_stdio)
 Create a new process.
 
 ProcessBase (PropertiesBase &props)
 Create a new process with the specified properties.
 
PropertiesRef GetProperties () const
 Get the properties associated with a process.
 
StringResult Read (int *exitcode=nullptr)
 Read all the output from a process.
 
template<class T >
OwnArray< T > ReadAs (int *exitcode=nullptr)
 Read all the output from a process.
 
IOStreamRef GetInput ()
 Get the IOStreamBase associated with process standard input.
 
IOStreamRef GetOutput ()
 Get the IOStreamBase associated with process standard output.
 
void Kill (bool force)
 Stop a process.
 
bool Wait (bool block, int *exitcode)
 Wait for a process to finish.
 
constexpr Resource (T resource={})
 Constructs the underlying resource.
 
constexpr Resource (std::nullptr_t)
 Equivalent to default ctor.
 
constexpr Resource (std::nullopt_t)
 Equivalent to default ctor.
 
 Resource (const Resource &other)=delete
 
 Resource (Resource &&other)=delete
 
- Public Member Functions inherited from SDL::Resource< SDL_Process * >
constexpr Resource (SDL_Process * resource={})
 Constructs the underlying resource.
 
constexpr Resource (std::nullptr_t)
 Equivalent to default ctor.
 
constexpr Resource (std::nullopt_t)
 Equivalent to default ctor.
 
 Resource (const Resource &other)=delete
 
 Resource (Resource &&other)=delete
 
Resourceoperator= (const Resource &other)=delete
 
Resourceoperator= (Resource &&other)=delete
 
constexpr operator bool () const
 True if contains a valid resource.
 
constexpr bool operator== (const Resource &other) const=default
 Comparison.
 
constexpr bool operator== (std::nullopt_t) const
 Comparison.
 
constexpr bool operator== (std::nullptr_t) const
 Comparison.
 
constexpr SDL_Process * get () const
 Return contained resource;.
 
constexpr SDL_Process * release (SDL_Process * newResource={})
 Return contained resource and empties or replace value.
 
constexpr const SDL_Process * operator-> () const
 Access to fields.
 
constexpr SDL_Process * operator-> ()
 Access to fields.
 

Detailed Description

Category:
Resource
See also
ProcessBase
ProcessRef

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