X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Fvariable.cpp;h=52e77ca3519d8255cb347f51edcce66eff930687;hb=2ee84c5948ede7fc2f7b4435c5edef42a030ac05;hp=edc0245677841765e6a239990d516e29b810ab2b;hpb=3239ef39dcee08fa6e8cd68cdf2727fc68cc7a8c;p=architektonas diff --git a/src/base/variable.cpp b/src/base/variable.cpp index edc0245..52e77ca 100644 --- a/src/base/variable.cpp +++ b/src/base/variable.cpp @@ -17,90 +17,90 @@ // 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; }