#define __VARIABLE_H__
#include <QtCore>
-#include "rs.h"
+#include "enums.h"
#include "vector.h"
#include "debug.h"
*
* @author Andrew Mustun
*/
-class RS_Variable
+class Variable
{
public:
typedef struct {
int i;
double d;
Vector v;
- } RS_VariableContents;
+ } VariableContents;
- RS_Variable();
- RS_Variable(const Vector & v, int c);
- RS_Variable(const QString & v, int c);
- RS_Variable(int v, int c);
- RS_Variable(double v, int c);
- virtual ~RS_Variable();
+ 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);
RS2::VariableType getType();
int getCode();
- //friend std::ostream& operator << (std::ostream& os, RS_Variable& v);
+ //friend std::ostream& operator << (std::ostream& os, Variable& v);
private:
- RS_VariableContents contents;
+ VariableContents contents;
RS2::VariableType type;
int code;
};