remove test cmd, introduce resources to cmdServer

This commit is contained in:
hg
2014-03-05 15:59:49 +01:00
parent 5375925f34
commit 5d86d6c2bd
6 changed files with 17 additions and 29 deletions

View File

@ -10,6 +10,7 @@
#include <Metro.h>
#include "cmd.h"
#include "Resources.h"
const bool DEBUG = true;
const bool INFO = true;
@ -30,7 +31,7 @@ class ThermConfig : public Cmd {
public:
ThermConfig(Thermometer *thermometer) : m_thermometer(thermometer) {};
virtual String getCmdName() { return "TCFG"; }
virtual String getHelp() { return "Thermometer configuration operations"; }
virtual String getHelp() { return getResource(THERMCONFIG_HELP_KEY); }
virtual String exec(String params);
private:
Thermometer *m_thermometer;
@ -40,7 +41,7 @@ class ThermValues : public Cmd {
public:
ThermValues(Thermometer *thermometer) : m_thermometer(thermometer) {};
virtual String getCmdName() { return "TVAL"; }
virtual String getHelp() { return "Show thermometer measurement values"; }
virtual String getHelp() { return getResource(THERMVALUES_HELP_KEY); }
virtual String exec(String params);
private:
Thermometer *m_thermometer;
@ -50,7 +51,7 @@ class ThermCalibrate : public Cmd {
public:
ThermCalibrate(Thermometer *thermometer);
virtual String getCmdName() { return "TCALIBR"; }
virtual String getHelp() { return "Thermometer calibration operations"; }
virtual String getHelp() { return getResource(THERMCALIBRATE_HELP_KEY); }
virtual String exec(String params);
friend class Thermometer;
private: