X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FMapType.h;fp=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FMapType.h;h=ec7e7ce6eb0a0e6e32d352855628f66447dfbf65;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/MapType.h b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/MapType.h new file mode 100644 index 000000000..ec7e7ce6e --- /dev/null +++ b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/MapType.h @@ -0,0 +1,28 @@ +#pragma once + +#include "DataType.h" + +namespace Databoard { + namespace Type { + + class DATABOARD_API MapType : public DataType { + public: + MapType(); + MapType(DataType* keyType, DataType* valueType); + + virtual ~MapType(); + + DataType* getKeyType(); + DataType* getValueType(); + void setKeyType(DataType* keyType); + void setValueType(DataType* valueType); + + virtual std::string writeOut(int indent = 0); + + protected: + + DataType* keyType; + DataType* valueType; + }; + } +}