![]() |
galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
|
Manages a subprocess launched by galaxy. More...
#include <Subprocess.hpp>
Collaboration diagram for galaxy::Subprocess:Public Member Functions | |
| Subprocess () noexcept | |
| Constructor. | |
| Subprocess (std::string_view process, std::span< std::string > args={}) | |
| Create constructor. | |
| ~Subprocess () noexcept | |
| Destructor. | |
| 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. | |
| void | kill () noexcept |
| Terminates process. | |
Private Attributes | |
| SDL_Process * | m_process |
| Process information and handles. | |
Manages a subprocess launched by galaxy.
Definition at line 21 of file Subprocess.hpp.
|
noexcept |
Constructor.
Definition at line 14 of file Subprocess.cpp.
| galaxy::Subprocess::Subprocess | ( | std::string_view | process, |
| std::span< std::string > | args = {} ) |
Create constructor.
| process | Subprocess to launch. Can include a path. |
| args | Command-line args to set for process. Optional. |
Definition at line 19 of file Subprocess.cpp.
Here is the call graph for this function:
|
noexcept |
Destructor.
Calls terminate().
Definition at line 25 of file Subprocess.cpp.
Here is the call graph for this function:| void galaxy::Subprocess::create | ( | std::string_view | process, |
| std::span< std::string > | args = {} ) |
Launch a subprocess.
| process | Subprocess to launch. Can include a path. |
| args | Command-line args to set for process. Optional. |
Definition at line 30 of file Subprocess.cpp.
Here is the caller graph for this function:
|
noexcept |
Wait for a process to finish execution.
| block | Should the main app be blocked until the subprocess exits? |
Definition at line 51 of file Subprocess.cpp.
Here is the caller graph for this function:
|
noexcept |
Terminates process.
Definition at line 56 of file Subprocess.cpp.
Here is the caller graph for this function:
|
private |
Process information and handles.
Definition at line 71 of file Subprocess.hpp.