1 #ifndef SCLANGSUBPROCESS_HPP
2 #define SCLANGSUBPROCESS_HPP
62 void SendInstruction(std::string instruction, std::function<
void(std::string)> reply_action);
64 std::atomic<bool> started, run;
65 bool last_started =
false;
69 bool collecting_reply =
false;
70 std::string reply_buffer;
74 std::unique_ptr<Subprocess> subprocess;
78 std::thread the_thread;
79 std::recursive_mutex io_mutex;
80 std::string WaitForReply(std::string);
82 void SendInstructionRaw(std::string);
85 std::list<std::string> lines_received;
86 std::list<std::pair<std::string,std::function<void(std::string)>>> instructions_actions;
88 std::list<std::function<void()>> replies;
93 #endif // SCLANGSUBPROCESS_HPP
void SendInstruction(std::string)
Definition: SCLangSubprocess.hpp:34
Signal on_started
Definition: SCLangSubprocess.hpp:55
Signal< std::string > on_any_line_received
Definition: SCLangSubprocess.hpp:54
Definition: Alertable.hpp:26
SCLangSubprocess(std::string command)