]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/MapType.h
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.databoard / cpp / DataBoardTest / DataBoard / MapType.h
diff --git a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/MapType.h b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/MapType.h
new file mode 100644 (file)
index 0000000..ec7e7ce
--- /dev/null
@@ -0,0 +1,28 @@
+#pragma once\r
+\r
+#include "DataType.h"\r
+\r
+namespace Databoard {\r
+       namespace Type {\r
+\r
+               class DATABOARD_API MapType : public DataType {\r
+               public:\r
+                       MapType();\r
+                       MapType(DataType* keyType, DataType* valueType);\r
+\r
+                       virtual ~MapType();\r
+\r
+                       DataType* getKeyType();\r
+                       DataType* getValueType();\r
+                       void setKeyType(DataType* keyType);\r
+                       void setValueType(DataType* valueType);\r
+\r
+                       virtual std::string writeOut(int indent = 0);\r
+\r
+               protected:\r
+\r
+                       DataType* keyType;\r
+                       DataType* valueType;\r
+               };\r
+       }\r
+}\r