![]() |
Lysa
0.0
Lysa 3D Engine
|
Launches an external process asynchronously and streams its output line by line.
Public Typedefs | |
| using | LineCallback = std::function< void (ProcessStreamType, const std::string &line)> |
| using | ExitCallback = std::function< void (int exitCode)> |
Public Member Functions | |
| ProcessRunner (const std::string &command, const std::filesystem::path &workingDirectory, LineCallback onLine, ExitCallback onExit) | |
| ~ProcessRunner () | |
| bool | isRunning () const |
| void | terminate () const |
| ProcessRunner (const ProcessRunner &) = delete | |
| ProcessRunner & | operator= (const ProcessRunner &) = delete |
| using ExitCallback = std::function<void(int exitCode)> |
| using LineCallback = std::function<void(ProcessStreamType, const std::string& line)> |
| ProcessRunner | ( | const std::string & | command, |
| const std::filesystem::path & | workingDirectory, | ||
| LineCallback | onLine, | ||
| ExitCallback | onExit | ||
| ) |
| ~ProcessRunner | ( | ) |
|
delete |
| bool isRunning | ( | ) | const |
|
delete |
| void terminate | ( | ) | const |