77
88#ifndef COMMANDHANDLER_H_
99#define COMMANDHANDLER_H_
10- // #include <CmdParser.h>
10+
1111#include " ChoosableClass.h"
1212#include < set>
1313#include " mutex.hpp"
1414#include " ClassIDs.h"
1515#include < vector>
16- // #include "CommandInterface.h"
1716
1817
1918#define CMDFLAG_GET 0x01
@@ -136,7 +135,7 @@ class CommandHandler {
136135 virtual std::string getHelpstring (); // Returns a help string if "help" command is sent
137136 virtual std::string getCommandsHelpstring (); // Returns a list of the commands helpstrings
138137 virtual std::string getCsvHelpstring (); // Returns a list of the commands helpstrings formatted for csv
139- // static void sendSerial(std::string cls,std::string cmd,std::string string,uint8_t prefix = 0xFF); //!< Send a command reply formatted sequence
138+
140139 static void logSerial (std::string string); // !< Send a log formatted sequence
141140
142141 void broadcastCommandReply (CommandReply reply, uint32_t cmdId,CMDtype type);
@@ -223,11 +222,8 @@ class CommandHandler {
223222 }
224223 }
225224
226- // uint16_t commandHandlerID = 1; // 0 reserved for system
227-
228-
229225 std::vector<CmdHandlerCommanddef> registeredCommands;
230- // void registerCommand(std::string cmd,uint16_t cmdid, std::string help="");
226+
231227 // Helper to be used with class enums
232228 template <typename ID >
233229 void registerCommand (const char * cmd,const ID cmdid,const char * help=nullptr ,uint32_t flags = 0 ){
@@ -247,10 +243,6 @@ class CommandHandler {
247243 }
248244
249245
250- // std::string clsname;
251- // uint16_t clsid;
252- // uint8_t cmdHandlerInstance=0;
253-
254246 CmdHandlerInfo cmdHandlerInfo;
255247
256248};
0 commit comments