Shadowrun: Awakened 29 September 2011 - Build 871
PacketConsoleLogger.h
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 #include "NativeFeatureIncludes.h"
00009 #if _RAKNET_SUPPORT_LogCommandParser==1 && _RAKNET_SUPPORT_PacketLogger==1
00010 
00011 #ifndef __PACKET_CONSOLE_LOGGER_H_
00012 #define __PACKET_CONSOLE_LOGGER_H_
00013 
00014 #include "PacketLogger.h"
00015 
00016 namespace RakNet
00017 {
00019 class LogCommandParser;
00020 
00023 class RAK_DLL_EXPORT  PacketConsoleLogger : public PacketLogger
00024 {
00025 public:
00026     PacketConsoleLogger();
00027     // Writes to the command parser used for logging, which is accessed through a secondary communication layer (such as Telnet or RakNet) - See ConsoleServer.h
00028     virtual void SetLogCommandParser(LogCommandParser *lcp);
00029     virtual void WriteLog(const char *str);
00030 protected:
00031     LogCommandParser *logCommandParser;
00032 };
00033 
00034 } // namespace RakNet
00035 
00036 #endif
00037 
00038 #endif // _RAKNET_SUPPORT_*

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net