X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Fvariable.h;fp=src%2Fbase%2Fvariable.h;h=0000000000000000000000000000000000000000;hb=9f6ad3fe0b9cb30115a5d38e8af3aebed0d70c08;hp=b0c45950ba4c5d7b541528869d36667c708b3082;hpb=43c13b052d069ba435277d93867380d00c04931f;p=architektonas diff --git a/src/base/variable.h b/src/base/variable.h deleted file mode 100644 index b0c4595..0000000 --- a/src/base/variable.h +++ /dev/null @@ -1,52 +0,0 @@ -#ifndef __VARIABLE_H__ -#define __VARIABLE_H__ - -#include -#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