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