]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/IntegerValue.h
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.databoard / cpp / DataBoardTest / DataBoard / IntegerValue.h
diff --git a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/IntegerValue.h b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/IntegerValue.h
new file mode 100644 (file)
index 0000000..7662848
--- /dev/null
@@ -0,0 +1,26 @@
+#pragma once\r
+\r
+#include "Value.h"\r
+\r
+namespace Databoard {\r
+       namespace Value {\r
+\r
+               class DATABOARD_API IntegerValue : public Value {\r
+               public:\r
+                       IntegerValue(Databoard::Type::DataType* dataBoard);\r
+                       virtual ~IntegerValue();\r
+\r
+                       void setValue(int value);\r
+                       int getValue();\r
+\r
+                       virtual std::string writeOut(int indent = 0);\r
+                       virtual bool equals(const Value* other);\r
+\r
+                       virtual std::string isValid();\r
+\r
+               protected:\r
+\r
+                       int value;\r
+               };\r
+       }\r
+}\r