]> gerrit.simantics Code Review - simantics/platform.git/blob - 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
1 #pragma once\r
2 \r
3 #include <string>\r
4 \r
5 namespace Databoard {\r
6 \r
7         class Limit {\r
8         public:\r
9                 Limit(bool isLower = false);\r
10                 virtual~ Limit();\r
11 \r
12                 void setValue(std::string value);\r
13                 std::string getValue();\r
14 \r
15                 double getDouble(double value);\r
16                 float getFloat(float value);\r
17                 int getInteger(int value);\r
18                 long getLong(long value);\r
19                 char getByte(char value);\r
20 \r
21                 void setInclusive();\r
22                 bool getInclusive();\r
23 \r
24                 std::string writeOut();\r
25 \r
26         private:\r
27 \r
28                 bool isLower;\r
29                 bool isInclusive;\r
30 \r
31                 std::string value;\r
32         };\r
33 \r
34 }\r