X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FNumberType.h;fp=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FNumberType.h;h=f3326f6594ba2450d9fb30f791d7dfc276fd9ab3;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/NumberType.h b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/NumberType.h new file mode 100644 index 000000000..f3326f659 --- /dev/null +++ b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/NumberType.h @@ -0,0 +1,32 @@ +#pragma once + +#include "DataType.h" + +#include + +namespace Databoard { + class Range; + + namespace Type { + + class DATABOARD_API NumberType : public DataType { + public: + NumberType(); + NumberType(std::string unit); + NumberType(std::string unit, Range* range); + virtual ~NumberType() = 0; + + std::string getUnit(); + void setUnit(std::string unit); + Range* getRange(); + void setRange(Range* value); + + std::string writeOut(int indent); + + protected: + + std::string unit; + Range* range; + }; + } +}