]> Shamusworld >> Repos - architektonas/blobdiff - src/base/variable.cpp
Removed unnecessary RS_ prefix from classes and whatnot.
[architektonas] / src / base / variable.cpp
index edc0245677841765e6a239990d516e29b810ab2b..52e77ca3519d8255cb347f51edcce66eff930687 100644 (file)
 // We probably could replace all this crap with QVariant...
 #include "variable.h"
 
-RS_Variable::RS_Variable()
+Variable::Variable()
 {
        type = RS2::VariableVoid;
        code = 0;
 }
 
-RS_Variable::RS_Variable(const Vector & v, int c)
+Variable::Variable(const Vector & v, int c)
 {
        setVector(v);
        code = c;
 }
 
-RS_Variable::RS_Variable(const QString & v, int c)
+Variable::Variable(const QString & v, int c)
 {
        setString(v);
        code = c;
 }
 
-RS_Variable::RS_Variable(int v, int c)
+Variable::Variable(int v, int c)
 {
        setInt(v);
        code = c;
 }
 
-RS_Variable::RS_Variable(double v, int c)
+Variable::Variable(double v, int c)
 {
        setDouble(v);
        code = c;
 }
 
-/*virtual*/ RS_Variable::~RS_Variable()
+/*virtual*/ Variable::~Variable()
 {
 }
 
-void RS_Variable::setString(const QString & str)
+void Variable::setString(const QString & str)
 {
        contents.s = str;
        type = RS2::VariableString;
 }
 
-void RS_Variable::setInt(int i)
+void Variable::setInt(int i)
 {
        contents.i = i;
        type = RS2::VariableInt;
 }
 
-void RS_Variable::setDouble(double d)
+void Variable::setDouble(double d)
 {
        contents.d = d;
        type = RS2::VariableDouble;
 }
 
-void RS_Variable::setVector(const Vector & v)
+void Variable::setVector(const Vector & v)
 {
        contents.v = v;
        type = RS2::VariableVector;
 }
 
-QString RS_Variable::getString()
+QString Variable::getString()
 {
        return contents.s;
 }
 
-int RS_Variable::getInt()
+int Variable::getInt()
 {
        return contents.i;
 }
 
-double RS_Variable::getDouble()
+double Variable::getDouble()
 {
        return contents.d;
 }
 
-Vector RS_Variable::getVector()
+Vector Variable::getVector()
 {
        return contents.v;
 }
 
-RS2::VariableType RS_Variable::getType()
+RS2::VariableType Variable::getType()
 {
        return type;
 }
 
-int RS_Variable::getCode()
+int Variable::getCode()
 {
        return code;
 }