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