11 #include "interfaces/generic/ILanguageInvoker.h" 12 #include "threads/Thread.h" 27 virtual InvokerState GetState()
const;
29 const std::string& GetScript()
const {
return m_script; }
30 LanguageInvokerPtr GetInvoker()
const {
return m_invoker; }
31 bool Reuseable(
const std::string& script)
const 33 return !m_bStop && m_reusable && GetState() == InvokerStateScriptDone && m_script == script;
35 virtual void Release();
38 bool execute(
const std::string &script,
const std::vector<std::string> &arguments)
override;
39 bool stop(
bool wait)
override;
41 void OnStartup()
override;
42 void Process()
override;
43 void OnExit()
override;
44 void OnException()
override;
47 LanguageInvokerPtr m_invoker;
50 std::vector<std::string> m_args;
53 std::condition_variable m_condition;
54 bool m_restart =
false;
55 bool m_reusable =
false;
Definition: LanguageInvokerThread.h:19
Definition: ScriptInvocationManager.h:23
Definition: ILanguageInvoker.h:31