Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
child_process.hpp File Reference
#include <chrono>
#include <cstdint>
#include <filesystem>
#include <functional>
#include <memory>
#include <optional>
#include <span>
#include <string>
#include <string_view>
#include <vector>

Go to the source code of this file.

Classes

struct  pulp::platform::ProcessResult
 Result of a completed child process. More...
struct  pulp::platform::ProcessOptions
 Options for child process execution. More...
class  pulp::platform::ChildProcessInputChannel
 Move-only parent endpoint of the child's inherited standard-input channel. More...
class  pulp::platform::ChildProcess
 Cross-platform child process with timeout, cancellation, and line-by-line output callbacks. More...

Namespaces

namespace  pulp
namespace  pulp::platform
 Device capability vocabulary: one tier ladder, one thermal ladder, and the projection from observed inputs onto them.

Typedefs

using pulp::platform::StandardInputByteProvider
 Produces private standard-input bytes after the child has been spawned.
using pulp::platform::StandardInputChannelSession
 Owns a post-spawn exchange over the child's private inherited input channel.

Functions

ProcessResult pulp::platform::exec (const std::string &command, const std::vector< std::string > &args={}, int timeout_ms=30000)
 Convenience: run a command and capture output (blocking).
std::optional< std::filesystem::path > pulp::platform::find_on_path (const std::string &binary_name)
 Check if a binary exists on PATH. Returns the full path if found.