8#ifndef GALAXY_PLATFORM_SUBPROCESS_HPP_
9#define GALAXY_PLATFORM_SUBPROCESS_HPP_
14#include <SDL3/SDL_process.h>
35 Subprocess(std::string_view process, std::span<std::string> args = {});
50 void create(std::string_view process, std::span<std::string> args = {});
60 bool wait(
const bool block)
noexcept;
Manages a subprocess launched by galaxy.
SDL_Process * m_process
Process information and handles.
~Subprocess() noexcept
Destructor.
Subprocess() noexcept
Constructor.
void kill() noexcept
Terminates process.
void create(std::string_view process, std::span< std::string > args={})
Launch a subprocess.
bool wait(const bool block) noexcept
Wait for a process to finish execution.