X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FRange.cpp;fp=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FRange.cpp;h=208bebb0334e0fe87ed7aff57f58a9d4891084a3;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=fbb37ae2bac86ee42e69dfcbc0929e1d21e907e7;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/Range.cpp b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/Range.cpp index fbb37ae2b..208bebb03 100644 --- a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/Range.cpp +++ b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/Range.cpp @@ -1,64 +1,64 @@ -#include "Range.h" - -#include "Limit.h" - -#include "Constants.h" - -namespace Databoard { - - Range::Range() - { - lower = new Limit(true); - upper = new Limit(false); - } - - Range::~Range() - { - if(lower != NULL) - { - delete lower; - lower = NULL; - } - - if(upper != NULL) - { - delete upper; - upper = NULL; - } - } - - Limit* Range::getLower() - { - return lower; - } - - Limit* Range::getUpper() - { - return upper; - } - - void Range::setLower(std::string value) - { - lower->setValue(value); - } - - void Range::setUpper(std::string value) - { - upper->setValue(value); - } - - std::string Range::writeOut() - { - std::string s; - - s += lower->writeOut(); - - s += " "; - s += STR_RANGESPLIT; - s += " "; - - s += upper->writeOut(); - - return s; - } -} +#include "Range.h" + +#include "Limit.h" + +#include "Constants.h" + +namespace Databoard { + + Range::Range() + { + lower = new Limit(true); + upper = new Limit(false); + } + + Range::~Range() + { + if(lower != NULL) + { + delete lower; + lower = NULL; + } + + if(upper != NULL) + { + delete upper; + upper = NULL; + } + } + + Limit* Range::getLower() + { + return lower; + } + + Limit* Range::getUpper() + { + return upper; + } + + void Range::setLower(std::string value) + { + lower->setValue(value); + } + + void Range::setUpper(std::string value) + { + upper->setValue(value); + } + + std::string Range::writeOut() + { + std::string s; + + s += lower->writeOut(); + + s += " "; + s += STR_RANGESPLIT; + s += " "; + + s += upper->writeOut(); + + return s; + } +}