+++ /dev/null
-#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