| 3 | namespace TinyProcessLib { |
| 4 | |
| 5 | Process::Process(const std::vector<string_type>& arguments, const string_type& path, |
| 6 | std::function<void(const char* bytes, size_t n)> read_stdout, std::function<void(const char* bytes, size_t n)> read_stderr, |
| 7 | bool open_stdin, const Config& config) noexcept : |
| 8 | closed(true), read_stdout(std::move(read_stdout)), read_stderr(std::move(read_stderr)), open_stdin(open_stdin), config(config) { |
| 9 | open(arguments, path); |
| 10 | async_read(); |
| 11 | } |
| 12 | |
| 13 | Process::Process(const string_type& command, const string_type& path, std::function<void(const char* bytes, size_t n)> read_stdout, |
| 14 | std::function<void(const char* bytes, size_t n)> read_stderr, bool open_stdin, const Config& config) noexcept : |
nothing calls this directly
no outgoing calls
no test coverage detected