SLikeNet  0.1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
commandparser.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_RakNetCommandParser==1
22 
23 #ifndef __RAKNET_COMMAND_PARSER
24 #define __RAKNET_COMMAND_PARSER
25 
26 #include "CommandParserInterface.h"
27 #include "Export.h"
28 
29 namespace SLNet
30 {
31 class RakPeerInterface;
32 
35 {
36 public:
37  // GetInstance() and DestroyInstance(instance*)
39 
42 
50  bool OnCommand(const char *command, unsigned numParameters, char **parameterList, TransportInterface *transport, const SystemAddress &systemAddress, const char *originalString);
51 
55  const char *GetName(void) const;
56 
60  void SendHelp(TransportInterface *transport, const SystemAddress &systemAddress);
61 
64  void SetRakPeerInterface(SLNet::RakPeerInterface *rakPeer);
65 protected:
66 
69 };
70 
71 } // namespace SLNet
72 
73 #endif
74 
75 #endif // _RAKNET_SUPPORT_*