added "hex" command, added "--enablehex" commandline option (disabled by default), limit "write -h" to known messages only

This commit is contained in:
john30
2016-04-24 11:16:42 +02:00
parent be4bbaaf67
commit 546641d770
4 changed files with 99 additions and 33 deletions
+10
View File
@@ -72,6 +72,9 @@ private:
/** whether to pick configuration files matching initial scan. */
const bool m_scanConfig;
/** whether to enable the hex command. */
const bool m_enableHex;
/** the created @a BusHandler instance. */
BusHandler* m_busHandler;
@@ -127,6 +130,13 @@ private:
*/
string executeWrite(vector<string> &args);
/**
* Execute the hex command.
* @param args the arguments passed to the command (starting with the command itself), or empty for help.
* @return the result string.
*/
string executeHex(vector<string> &args);
/**
* Execute the find command.
* @param args the arguments passed to the command (starting with the command itself), or empty for help.