]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/ArrayValue.h
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.databoard / cpp / DataBoardTest / DataBoard / ArrayValue.h
1 #pragma once\r
2 \r
3 #include "Value.h"\r
4 \r
5 #include <string>\r
6 #include <vector>\r
7 \r
8 namespace Databoard {\r
9         namespace Value {\r
10 \r
11                 class DATABOARD_API ArrayValue : public Value {\r
12                 public:\r
13                         ArrayValue(Databoard::Type::DataType* dataBoard);\r
14                         virtual ~ArrayValue();\r
15 \r
16                         virtual std::string writeOut(int indent = 0);\r
17                         virtual bool equals(const Value* other);\r
18 \r
19                         void add(Value* value);\r
20                         void insert(Value* value, int index);\r
21                         int count();\r
22                         void remove(int index, int count);\r
23                         void clear();\r
24                         Value* get(int index);\r
25 \r
26                         // snapshot of the array\r
27                         std::vector<Value*> getAll();\r
28 \r
29                         virtual std::string isValid();\r
30 \r
31                 protected:\r
32 \r
33                         std::vector<Value*> values;\r
34 \r
35                 };\r
36         }\r
37 }\r