SLikeNet 0.1.3

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PacketConsoleLogger.h
Go to the documentation of this file.
1 /*
2 * Original work: Copyright (c) 2014, Oculus VR, Inc.
3 * All rights reserved.
4 *
5 * This source code is licensed under the BSD-style license found in the
6 * RakNet License.txt file in the licenses directory of this source tree. An additional grant
7 * of patent rights can be found in the RakNet Patents.txt file in the same directory.
8 *
9 *
10 * Modified work: Copyright (c) 2017, SLikeSoft UG (haftungsbeschränkt)
11 *
12 * This source code was modified by SLikeSoft. Modifications are licensed under the MIT-style
13 * license found in the license.txt file in the root directory of this source tree.
14 */
15
19
20 #include "NativeFeatureIncludes.h"
21 #if _RAKNET_SUPPORT_LogCommandParser==1 && _RAKNET_SUPPORT_PacketLogger==1
22
23 #ifndef __PACKET_CONSOLE_LOGGER_H_
24 #define __PACKET_CONSOLE_LOGGER_H_
25
26 #include "PacketLogger.h"
27
28 namespace SLNet
29 {
31 class LogCommandParser;
32
35 class RAK_DLL_EXPORT PacketConsoleLogger : public PacketLogger
36 {
37 public:
38 PacketConsoleLogger();
39 // Writes to the command parser used for logging, which is accessed through a secondary communication layer (such as Telnet or RakNet) - See ConsoleServer.h
40 virtual void SetLogCommandParser(LogCommandParser *lcp);
41 virtual void WriteLog(const char *str);
42 protected:
43 LogCommandParser *logCommandParser;
44 };
45
46 } // namespace SLNet
47
48 #endif
49
50 #endif // _RAKNET_SUPPORT_*