X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FLimit.h;fp=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FLimit.h;h=90bef80e96fb0765b99f2fd81257c6c1dc1de3a9;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/Limit.h b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/Limit.h new file mode 100644 index 000000000..90bef80e9 --- /dev/null +++ b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/Limit.h @@ -0,0 +1,34 @@ +#pragma once + +#include + +namespace Databoard { + + class Limit { + public: + Limit(bool isLower = false); + virtual~ Limit(); + + void setValue(std::string value); + std::string getValue(); + + double getDouble(double value); + float getFloat(float value); + int getInteger(int value); + long getLong(long value); + char getByte(char value); + + void setInclusive(); + bool getInclusive(); + + std::string writeOut(); + + private: + + bool isLower; + bool isInclusive; + + std::string value; + }; + +}