 |
libfilezilla
|
Go to the documentation of this file. 1 #ifndef LIBFILEZILLA_PROCESS_HEADER
2 #define LIBFILEZILLA_PROCESS_HEADER
41 bool spawn(
native_string const& cmd, std::vector<native_string>
const& args = std::vector<native_string>());
43 bool spawn(std::vector<native_string>
const& command_with_args);
72 inline bool write(std::string_view
const& s) {
73 return write(s.data(),
static_cast<unsigned int>(s.size()));
The buffer class is a simple buffer where data can be appended at the end and consumed at the front....
Definition: buffer.hpp:24
int read(char *buffer, unsigned int len)
Read data from process.
void kill()
Stops the spawned process.
bool spawn_detached_process(std::vector< native_string > const &cmd_with_args)
Starts a detached process.
std::wstring native_string
A string in the system's native character type and encoding. Note: This typedef changes depending on...
Definition: string.hpp:33
The process class manages an asynchronous process with redirected IO.
Definition: process.hpp:22
Sets some global macros and further includes string.hpp.
bool spawn(native_string const &cmd, std::vector< native_string > const &args=std::vector< native_string >())
Start the process.
The namespace used by libfilezilla.
Definition: apply.hpp:17
bool write(char const *buffer, unsigned int len)
Write data data process.