X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FStringType.h;fp=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FStringType.h;h=aa655c1d45851bde3ac01f1cedd382f19b222379;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=632683026694d89a8055912e5741627db2bf91cd;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/StringType.h b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/StringType.h index 632683026..aa655c1d4 100644 --- a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/StringType.h +++ b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/StringType.h @@ -1,41 +1,41 @@ -#pragma once - -#include - -#include "DataType.h" - -#include - -namespace Databoard { - class Range; - - namespace Type { - - class DATABOARD_API StringType : public DataType { - public: - StringType(); - StringType(std::string pattern); - StringType(std::string pattern, std::string mimeType, Range* length); - - virtual ~StringType(); - - std::string getPattern(); - void setPattern(std::string pattern); - std::string getMimeType(); - void setMimeType(std::string mimeType); - Range* getLength(); - void setLength(Range* length); - int minLength(); - int maxLength(); - - virtual std::string writeOut(int indent = 0); - - protected: - - std::string pattern; - std::string mimeType; - Range* length; - - }; - } -} +#pragma once + +#include + +#include "DataType.h" + +#include + +namespace Databoard { + class Range; + + namespace Type { + + class DATABOARD_API StringType : public DataType { + public: + StringType(); + StringType(std::string pattern); + StringType(std::string pattern, std::string mimeType, Range* length); + + virtual ~StringType(); + + std::string getPattern(); + void setPattern(std::string pattern); + std::string getMimeType(); + void setMimeType(std::string mimeType); + Range* getLength(); + void setLength(Range* length); + int minLength(); + int maxLength(); + + virtual std::string writeOut(int indent = 0); + + protected: + + std::string pattern; + std::string mimeType; + Range* length; + + }; + } +}