]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/RecordValue.h
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.databoard / cpp / DataBoardTest / DataBoard / RecordValue.h
diff --git a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/RecordValue.h b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/RecordValue.h
new file mode 100644 (file)
index 0000000..b2c9bf3
--- /dev/null
@@ -0,0 +1,39 @@
+#pragma once\r
+\r
+#include "Value.h"\r
+\r
+#include <vector>\r
+\r
+namespace Databoard {\r
+\r
+       namespace Type {\r
+               //class RecordType;\r
+               class DataType;\r
+       }\r
+\r
+       namespace Value {\r
+\r
+               class DATABOARD_API RecordValue : public Value {\r
+               public:\r
+                       RecordValue(Databoard::Type::DataType* dataBoard);\r
+                       virtual ~RecordValue();\r
+\r
+\r
+                       void setField(int fieldIndex, Value* value);\r
+\r
+                       int count();\r
+                       Value* getField(int fieldIndex);\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 fieldCount;\r
+                       Value** fields;\r
+\r
+               };\r
+       }\r
+}\r