read and write pipes
This commit is contained in:
@@ -82,6 +82,10 @@ public:
|
||||
//! \~russian
|
||||
void closeInput();
|
||||
|
||||
void enableWriteStdIn(bool on = true);
|
||||
void enableReadStdOut(bool on = true);
|
||||
void enableReadStdErr(bool on = true);
|
||||
|
||||
//! \~english Returns current attached execution environment
|
||||
//! \~russian
|
||||
PIStringList environment() { return env; }
|
||||
@@ -123,6 +127,9 @@ public:
|
||||
EVENT1(execStarted, PIString, program);
|
||||
EVENT2(execFinished, PIString, program, int, exit_code);
|
||||
|
||||
bool isExecFinished() const {return exec_finished;}
|
||||
bool isExecStarted() const {return exec_start;}
|
||||
|
||||
|
||||
//! \~english Start detached execution "program" without arguments
|
||||
//! \~russian
|
||||
@@ -203,7 +210,8 @@ private:
|
||||
PIStringList args, env;
|
||||
PIString wd;
|
||||
int exit_code;
|
||||
bool is_exec;
|
||||
std::atomic_bool exec_start;
|
||||
std::atomic_bool exec_finished;
|
||||
};
|
||||
|
||||
#endif // MICRO_PIP
|
||||
|
||||
Reference in New Issue
Block a user