]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/ArrayType.h
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.databoard / cpp / DataBoardTest / DataBoard / ArrayType.h
1 #pragma once\r
2 \r
3 #include "DataBoardAPI.h"\r
4 \r
5 #include "DataType.h"\r
6 \r
7 #include <climits>\r
8 \r
9 namespace Databoard {\r
10 \r
11         class Range;\r
12 \r
13         namespace Type {\r
14 \r
15                 class DATABOARD_API ArrayType : public DataType {\r
16                 public:\r
17                         ArrayType();\r
18                         ArrayType(DataType* componentType);\r
19                         ArrayType(DataType* componentType, Range* length);\r
20 \r
21                         virtual ~ArrayType();\r
22 \r
23                         DataType* getComponentType();\r
24                         void setComponentType(DataType* componentType);\r
25                         int minLength();\r
26                         int maxLength();\r
27                         Range* getLength();\r
28                         void setLength(Range* length);\r
29 \r
30                         virtual std::string writeOut(int indent = 0);\r
31 \r
32                 protected:\r
33 \r
34                         DataType* componentType;\r
35                         Range* length;\r
36 \r
37 \r
38                 };\r
39         }\r
40 }\r