#ifndef __LUATASK_H__ #define __LUATASK_H__ #include #include #include #include #include class LuaTask : public Task { public: LuaTask(Lua *, const String &); LuaTask(Lua *, int) throw (GeneralException); virtual ~LuaTask(); virtual String GetName(); protected: virtual int Do() throw (GeneralException); private: LuaTask * gettop(); void settop(LuaTask *); Lua * L; String cmd; int nargs, stacktop, r; Task * c; Buffer * b; InPipe * p; String task; static htab * h; }; #endif