ArtMOO
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
G:/dev/qt/MOO/ServerCore/lua_listener.h
Go to the documentation of this file.
00001 #ifndef LUA_LISTENER_H
00002 #define LUA_LISTENER_H
00003 
00004 #include <lua.hpp>
00005 
00006 class Listener;
00007 
00008 class lua_listener
00009 {
00010 public:
00011         typedef struct luaListener
00012         {
00013                 Listener                *mListener;
00014         } luaListener;
00015 
00016         static void lua_pushlistener( lua_State *L, Listener *O );
00017 
00018 private:
00019         static void initialise( void );
00020 
00021         static void luaRegisterState( lua_State *L );
00022 
00023         static int luaListeners( lua_State *L );
00024 
00025         static luaListener *arg( lua_State *L, int pIndex = 1 );
00026 
00027         static const char                       *mLuaName;
00028 
00029         static const luaL_Reg            mLuaStatic[];
00030         static const luaL_Reg            mLuaInstance[];
00031 };
00032 
00033 #endif // LUA_LISTENER_H