Loading src/cmdplus.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -103,6 +103,12 @@ cmdplus::CmdController::CmdController() { _lastCmd = nullptr; } cmdplus::CmdController::CmdController(CmdController& ins){ _firstCmd=ins._firstCmd; _lastCmd=ins._lastCmd; } void cmdplus::CmdController::registerCmd(const char *key, const char skey,bool required, const char *defaultvalue, const char *help) { if (!key || !skey || !help) { throw "cmd parser key,skey or help not set!"; Loading src/cmdplus.h +2 −0 Original line number Diff line number Diff line Loading @@ -60,6 +60,8 @@ namespace cmdplus { return instance; } CmdController(CmdController &ins); void registerCmd(const char *key,char skey,bool required,const char *defaultvalue,const char *help); void registerCmd(const char *key,char skey,bool required,unsigned long defaultvalue, const char *help); void registerCmd(const char *key,char skey,bool required,int defaultvalue, const char *help); Loading Loading
src/cmdplus.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -103,6 +103,12 @@ cmdplus::CmdController::CmdController() { _lastCmd = nullptr; } cmdplus::CmdController::CmdController(CmdController& ins){ _firstCmd=ins._firstCmd; _lastCmd=ins._lastCmd; } void cmdplus::CmdController::registerCmd(const char *key, const char skey,bool required, const char *defaultvalue, const char *help) { if (!key || !skey || !help) { throw "cmd parser key,skey or help not set!"; Loading
src/cmdplus.h +2 −0 Original line number Diff line number Diff line Loading @@ -60,6 +60,8 @@ namespace cmdplus { return instance; } CmdController(CmdController &ins); void registerCmd(const char *key,char skey,bool required,const char *defaultvalue,const char *help); void registerCmd(const char *key,char skey,bool required,unsigned long defaultvalue, const char *help); void registerCmd(const char *key,char skey,bool required,int defaultvalue, const char *help); Loading