Lines Matching refs:LuaEngine
28 std::vector<std::string> LuaEngine::output_;
43 LuaEngine::LuaEngine() { in LuaEngine() function in lua_interpreter::LuaEngine
48 lua_register(lua_state_, "log", LuaEngine::ScriptLog); in LuaEngine()
49 lua_register(lua_state_, "on_success", LuaEngine::OnSuccess); in LuaEngine()
50 lua_register(lua_state_, "on_script_finished", LuaEngine::OnScriptFinished); in LuaEngine()
51 lua_register(lua_state_, "on_error", LuaEngine::OnError); in LuaEngine()
52 lua_register(lua_state_, "on_metrics_report", LuaEngine::OnMetricsReport); in LuaEngine()
55 LuaEngine::~LuaEngine() { lua_close(lua_state_); } in ~LuaEngine()
169 void LuaEngine::SaveSavedStateToRegistry(lua_State* lua_state, in SaveSavedStateToRegistry()
188 void LuaEngine::ClearSavedStateInRegistry(lua_State* lua_state) { in ClearSavedStateInRegistry()
205 std::vector<std::string> LuaEngine::ExecuteScript(std::string script_body, in ExecuteScript()
272 char** LuaEngine::StringVectorToCharArray(std::vector<std::string> vector) { in StringVectorToCharArray()
287 std::string LuaEngine::GetSavedState() { in GetSavedState()
362 int LuaEngine::ScriptLog(lua_State* lua_state) { in ScriptLog()
382 int LuaEngine::OnSuccess(lua_State* lua_state) { in OnSuccess()
397 int LuaEngine::OnScriptFinished(lua_State* lua_state) { in OnScriptFinished()
413 int LuaEngine::OnError(lua_State* lua_state) { in OnError()
429 int LuaEngine::OnMetricsReport(lua_State* lua_state) { in OnMetricsReport()
480 LuaEngine* NewLuaEngine() { return new LuaEngine(); } in NewLuaEngine()
482 LuaOutput* ExecuteScript(LuaEngine* l, char* script, char* function_name, in ExecuteScript()
489 LuaEngine::StringVectorToCharArray(script_execution_output); in ExecuteScript()