From 0b266c95523f944e62acf9251eb27450a8d73a04 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 8 Dec 2003 15:12:56 +0000 Subject: LUA everywhere! Wheee! --- includes/luacd.h | 49 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 3 deletions(-) (limited to 'includes/luacd.h') diff --git a/includes/luacd.h b/includes/luacd.h index f32eadd..2c66d96 100644 --- a/includes/luacd.h +++ b/includes/luacd.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: luacd.h,v 1.2 2003-12-07 04:44:38 pixel Exp $ */ +/* $Id: luacd.h,v 1.3 2003-12-08 15:12:57 pixel Exp $ */ #ifndef __LUACD_H__ #define __LUACD_H__ @@ -26,10 +26,19 @@ #include #include #include +#include + +#define CD_PUSHSTATICS(L) { \ + Luacdutils::pushstatics(L); \ + Luacdfile::pushstatics(L); \ + LuaPVD::pushstatics(L); \ + LuaDirTree::pushstatics(L); \ + Luaisobuilder::pushstatics(L); \ +} class Luacdutils : public LuaObject { public: - static void pushstatics(Lua *); + static void pushstatics(Lua *) throw (GeneralException); Luacdutils(cdutils *); protected: virtual void pushmembers(Lua *); @@ -47,10 +56,44 @@ class Luacdfile : public LuaHandle { class Luadirentry : public LuaObject { public: Luadirentry(cdutils::DirEntry *); - const cdutils::DirEntry * getdir(); protected: virtual void pushmembers(Lua *); cdutils::DirEntry * dir; }; +class Luacddate : public LuaObject { + public: + Luacddate(isobuilder::Date *); + private: + virtual void pushmembers(Lua *); + struct isobuilder::Date * date; +}; + +class LuaPVD : public LuaObject { + public: + static void pushstatics(Lua *) throw (GeneralException); + LuaPVD(struct isobuilder::PVD *); + private: + virtual void pushmembers(Lua *); + struct isobuilder::PVD * pvd; +}; + +class LuaDirTree : public LuaObject { + public: + static void pushstatics(Lua *) throw (GeneralException); + LuaDirTree(isobuilder::DirTree *); + private: + virtual void pushmembers(Lua *); + isobuilder::DirTree * dir; +}; + +class Luaisobuilder : public LuaObject { + public: + static void pushstatics(Lua *) throw (GeneralException); + Luaisobuilder(isobuilder *); + private: + virtual void pushmembers(Lua *); + isobuilder * iso; +}; + #endif -- cgit v1.2.3