diff options
author | pixel <pixel> | 2003-12-08 15:12:56 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-12-08 15:12:56 +0000 |
commit | 0b266c95523f944e62acf9251eb27450a8d73a04 (patch) | |
tree | 499d2dcf888608b326d808a3722500d1e4920029 /includes/luacd.h | |
parent | b3b4fd468cb4703ceed95ed78a567bb759cdb338 (diff) |
LUA everywhere! Wheee!
Diffstat (limited to 'includes/luacd.h')
-rw-r--r-- | includes/luacd.h | 49 |
1 files changed, 46 insertions, 3 deletions
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 <BLua.h>
#include <LuaHandle.h>
#include <cdutils.h>
+#include <isobuilder.h>
+
+#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 |