]> Shamusworld >> Repos - architektonas/blobdiff - src/base/variable.h
Major refactor of Architektonas: Jettisoning old cruft.
[architektonas] / src / base / variable.h
diff --git a/src/base/variable.h b/src/base/variable.h
deleted file mode 100644 (file)
index b0c4595..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-#ifndef __VARIABLE_H__
-#define __VARIABLE_H__
-
-#include <QtCore>
-#include "enums.h"
-#include "vector.h"
-#include "debug.h"
-
-/**
- * A variable of type int, double, string or vector.
- * The variable also contains its type and an int code
- * which can identify its contents in any way.
- *
- * @author Andrew Mustun
- */
-class Variable
-{
-       public:
-               typedef struct {
-                       QString s;
-                       int i;
-                       double d;
-                       Vector v;
-               } VariableContents;
-
-               Variable();
-               Variable(const Vector & v, int c);
-               Variable(const QString & v, int c);
-               Variable(int v, int c);
-               Variable(double v, int c);
-               virtual ~Variable();
-
-               void setString(const QString & str);
-               void setInt(int i);
-               void setDouble(double d);
-               void setVector(const Vector & v);
-               QString getString();
-               int getInt();
-               double getDouble();
-               Vector getVector();
-               RS2::VariableType getType();
-               int getCode();
-
-               //friend std::ostream& operator << (std::ostream& os, Variable& v);
-
-       private:
-               VariableContents contents;
-               RS2::VariableType type;
-               int code;
-};
-
-#endif