A Command Interpreter with support for used defined commands, subsystems, macros, help and parameter parsing.

Files at this revision

API Documentation at this revision

Comitter:
wvd_vegt
Date:
Tue Jan 18 18:55:42 2022 +0000
Parent:
26:34c65d3f6da0
Child:
29:8d6c38014f1a
Commit message:
RawSerial

Changed in this revision

cmdb.cpp Show annotated file Show diff for this revision Revisions of this file
cmdb.h Show annotated file Show diff for this revision Revisions of this file
--- a/cmdb.cpp	Wed Feb 15 09:50:53 2012 +0000
+++ b/cmdb.cpp	Tue Jan 18 18:55:42 2022 +0000
@@ -57,7 +57,7 @@
 
 #include <vector>
 #include <stdlib.h>
-#include <stdio.h>
+//#include <stdio.h>
 #include <stdarg.h>
 #include <ctype.h>
 #include <string.h>
@@ -67,7 +67,7 @@
 
 //------------------------------------------------------------------------------
 
-Cmdb::Cmdb(const Serial& _serial, std::vector<cmd>& _cmds, void (*_callback)(Cmdb&,int)) :
+Cmdb::Cmdb(const RawSerial& _serial, std::vector<cmd>& _cmds, void (*_callback)(Cmdb&,int)) :
         serial(_serial), cmds(_cmds) {
     echo = true;
     bold = true;
--- a/cmdb.h	Wed Feb 15 09:50:53 2012 +0000
+++ b/cmdb.h	Tue Jan 18 18:55:42 2022 +0000
@@ -417,7 +417,7 @@
      * @param serial a Serial port used for communication.
      * @param cmds a vector with the command table.
      */
-    Cmdb(const Serial& _serial, std::vector<cmd>& _cmds, void (*_callback)(Cmdb&,int) );
+    Cmdb(const RawSerial& _serial, std::vector<cmd>& _cmds, void (*_callback)(Cmdb&,int) );
 
     /** The version of the Command Interpreter.
      *
@@ -813,7 +813,7 @@
 
     /** Internal Serial Port Storage.
     */
-    Serial serial;
+    RawSerial serial;
 
     /** Internal Command Table Vector Storage.
      *