• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

PacketConsoleLogger.cpp

Go to the documentation of this file.
00001 #include "NativeFeatureIncludes.h"
00002 #if _RAKNET_SUPPORT_LogCommandParser==1 && _RAKNET_SUPPORT_PacketLogger==1
00003 
00004 #include "PacketConsoleLogger.h"
00005 #include "LogCommandParser.h"
00006 #include <stdio.h>
00007 
00008 PacketConsoleLogger::PacketConsoleLogger()
00009 {
00010         logCommandParser=0;
00011 }
00012 
00013 void PacketConsoleLogger::SetLogCommandParser(LogCommandParser *lcp)
00014 {
00015         logCommandParser=lcp;
00016         if (logCommandParser)
00017                 logCommandParser->AddChannel("PacketConsoleLogger");
00018 }
00019 void PacketConsoleLogger::WriteLog(const char *str)
00020 {
00021         if (logCommandParser)
00022                 logCommandParser->WriteLog("PacketConsoleLogger", str);
00023 }
00024 
00025 #endif // _RAKNET_SUPPORT_*

Generated on Thu Sep 30 2010 01:27:25 for RakNet by  doxygen 1.7.1