X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FArrayType.h;fp=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FArrayType.h;h=8c78cebf79eabd97323cb9e5bdbb2c2aca957eac;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/ArrayType.h b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/ArrayType.h new file mode 100644 index 000000000..8c78cebf7 --- /dev/null +++ b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/ArrayType.h @@ -0,0 +1,40 @@ +#pragma once + +#include "DataBoardAPI.h" + +#include "DataType.h" + +#include + +namespace Databoard { + + class Range; + + namespace Type { + + class DATABOARD_API ArrayType : public DataType { + public: + ArrayType(); + ArrayType(DataType* componentType); + ArrayType(DataType* componentType, Range* length); + + virtual ~ArrayType(); + + DataType* getComponentType(); + void setComponentType(DataType* componentType); + int minLength(); + int maxLength(); + Range* getLength(); + void setLength(Range* length); + + virtual std::string writeOut(int indent = 0); + + protected: + + DataType* componentType; + Range* length; + + + }; + } +}