Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
CommandDelegate.h
1 /*
2  * CommandDelegate.h
3  *
4  * Created on: 2 jul. 2015
5  * Author: Herman
6  */
11 #ifndef SERVICES_COMMANDPROCESSING_COMMANDDELEGATE_H_
12 #define SERVICES_COMMANDPROCESSING_COMMANDDELEGATE_H_
13 
14 #include "../Wiring/WString.h"
15 #include "Delegate.h"
16 #include "Network/TcpClient.h"
17 #include "WiringFrameworkIncludes.h"
18 #include "CommandOutput.h"
19 
27 
30 {
31  // Hashmap uses CommandDelegate() contructor when extending size
32  friend class HashMap<String, CommandDelegate>;
33 public:
40  CommandDelegate(String reqName, String reqHelp, String reqGroup, commandFunctionDelegate reqFunction);
41  ~CommandDelegate();
42 
43  String commandName;
44  String commandHelp;
45  String commandGroup;
47 
48 private :
49  CommandDelegate();
50 
51 };
52 
54 #endif /* SERVICES_COMMANDPROCESSING_COMMANDDELEGATE_H_ */
Definition: WHashMap.h:24
Delegate< void(String commandLine, CommandOutput *commandOutput)> commandFunctionDelegate
Command delegate function.
Definition: CommandDelegate.h:26
String commandGroup
Command group.
Definition: CommandDelegate.h:45
String commandHelp
Command help.
Definition: CommandDelegate.h:44
String commandName
Command name.
Definition: CommandDelegate.h:43
Command delegate class.
Definition: CommandDelegate.h:29
commandFunctionDelegate commandFunction
Command Delegate (function that is called when command is invoked)
Definition: CommandDelegate.h:46