Makes AlertCheckLuaEngine a subclass of LuaEngine

This commit is contained in:
Simone Mainardi 2019-07-18 17:27:57 +02:00
parent 0ec286f3ba
commit a5bf74b2b6
4 changed files with 6 additions and 22 deletions

View file

@ -22,11 +22,10 @@
#ifndef _ALERT_CHECK_LUA_ENGINE_H_
#define _ALERT_CHECK_LUA_ENGINE_H_
class AlertCheckLuaEngine {
class AlertCheckLuaEngine : public LuaEngine {
private:
ScriptPeriodicity p;
char script_path[MAX_PATH];
LuaEngine le;
public:
AlertCheckLuaEngine(AlertEntity alert_entity, ScriptPeriodicity p, NetworkInterface *iface);
@ -36,7 +35,6 @@ class AlertCheckLuaEngine {
ScriptPeriodicity getPeriodicity() const;
const char * getGranularity() const;
lua_State * getState() const;
};
#endif