10 * A variable of type int, double, string or vector.
11 * The variable also contains its type and an int code
12 * which can identify its contents in any way.
14 * @author Andrew Mustun
24 } RS_VariableContents;
27 RS_Variable(const Vector & v, int c);
28 RS_Variable(const QString & v, int c);
29 RS_Variable(int v, int c);
30 RS_Variable(double v, int c);
31 virtual ~RS_Variable();
33 void setString(const QString & str);
35 void setDouble(double d);
36 void setVector(const Vector & v);
41 RS2::VariableType getType();
44 //friend std::ostream& operator << (std::ostream& os, RS_Variable& v);
47 RS_VariableContents contents;
48 RS2::VariableType type;