]> Shamusworld >> Repos - architektonas/blobdiff - src/commandprocessor.h
Added Parallel tool + command processing.
[architektonas] / src / commandprocessor.h
diff --git a/src/commandprocessor.h b/src/commandprocessor.h
new file mode 100644 (file)
index 0000000..4321a9f
--- /dev/null
@@ -0,0 +1,36 @@
+#ifndef __COMMANDPROCESSOR_H__
+#define __COMMANDPROCESSOR_H__
+
+#include <QObject>
+#include <QString>
+
+class CommandProcessor: public QObject
+{
+       Q_OBJECT
+
+       public:
+               CommandProcessor();
+               ~CommandProcessor();
+               QString Process(QString);
+
+       signals:
+               void UpdateNeeded(void);
+
+       private:
+               void Error(QString);
+               void Warning(QString);
+               void AddToResponse(QString, QString, QString);
+               void ClearWhitespace(QString &);
+               double GetDouble(QString &);
+               int GetInt(QString &);
+               QString GetString(QString &);
+               int GetUnits(QString &);
+               bool GetComma(QString &);
+
+       private:
+               QString response;
+               bool parseError;
+               bool missingParam;
+};
+
+#endif // __COMMANDPROCESSOR_H__