LuaLog.hh

00001 /*
00002 ** TowBowlTactics, a turn-based strategy football game.
00003 **
00004 ** Copyright (C) 2009-2010 The TBT Team.
00005 **
00006 ** This program is free software; you can redistribute it and/or
00007 ** modify it under the terms of the GNU General Public License
00008 ** as published by the Free Software Foundation; either version 2
00009 ** of the License, or (at your option) any later version.
00010 **
00011 ** The complete GNU General Public Licence Notice can be found as the
00012 ** `NOTICE' file in the root directory.
00013 **
00014 ** The TBT Team consists of people listed in the `AUTHORS' file.
00015 */
00016 
00017 #ifndef LUALOG_HH_
00018 # define LUALOG_HH_
00019 
00020 # include "Lua.hh"
00021 # include "misc/Log.hh"
00022 
00023 namespace lua {
00024 
00025 class Log
00026 {
00027 public:
00028   Log(lua_State* l);
00029   ~Log();
00030   int SetVerbose(lua_State* l);
00031   int SetVerboseModule(lua_State* l);
00032   int SetOutputFile(lua_State* l);
00033   int SetPrintModule(lua_State* l);
00034   int SetPrintFunc(lua_State* l);
00035   int SetPrintTimestamp(lua_State* l);
00036   int SetUseColor(lua_State* l);
00037   int Print(lua_State *l);
00038   int Write(lua_State *l);
00039 
00040   // required by Luna
00041   static const char className[];
00042   static Luna<Log>::RegType methods[];
00043 
00044 private:
00045   ::Log* log_;
00046 };
00047 
00048 }
00049 
00050 #endif // LUALOG_HH_
Generated on Mon Apr 5 21:17:12 2010 for Stechec/TBT by  doxygen 1.6.3