]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/RecordValue.h
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.databoard / cpp / DataBoardTest / DataBoard / RecordValue.h
1 #pragma once
2
3 #include "Value.h"
4
5 #include <vector>
6
7 namespace Databoard {
8
9         namespace Type {
10                 //class RecordType;
11                 class DataType;
12         }
13
14         namespace Value {
15
16                 class DATABOARD_API RecordValue : public Value {
17                 public:
18                         RecordValue(Databoard::Type::DataType* dataBoard);
19                         virtual ~RecordValue();
20
21
22                         void setField(int fieldIndex, Value* value);
23
24                         int count();
25                         Value* getField(int fieldIndex);
26
27                         virtual std::string writeOut(int indent = 0);
28                         virtual bool equals(const Value* other);
29
30                         virtual std::string isValid();
31
32                 protected:
33
34                         int fieldCount;
35                         Value** fields;
36
37                 };
38         }
39 }