]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/Limit.h
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.databoard / cpp / DataBoardTest / DataBoard / Limit.h
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 (file)
index 0000000..90bef80
--- /dev/null
@@ -0,0 +1,34 @@
+#pragma once\r
+\r
+#include <string>\r
+\r
+namespace Databoard {\r
+\r
+       class Limit {\r
+       public:\r
+               Limit(bool isLower = false);\r
+               virtual~ Limit();\r
+\r
+               void setValue(std::string value);\r
+               std::string getValue();\r
+\r
+               double getDouble(double value);\r
+               float getFloat(float value);\r
+               int getInteger(int value);\r
+               long getLong(long value);\r
+               char getByte(char value);\r
+\r
+               void setInclusive();\r
+               bool getInclusive();\r
+\r
+               std::string writeOut();\r
+\r
+       private:\r
+\r
+               bool isLower;\r
+               bool isInclusive;\r
+\r
+               std::string value;\r
+       };\r
+\r
+}\r