X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FUnionValue.h;fp=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FUnionValue.h;h=58bb965c9d9f05f5ae901a8b0d6e125e4af59f93;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/UnionValue.h b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/UnionValue.h new file mode 100644 index 000000000..58bb965c9 --- /dev/null +++ b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/UnionValue.h @@ -0,0 +1,30 @@ +#pragma once + +#include "Value.h" + +#include + +namespace Databoard { + namespace Value { + + class DATABOARD_API UnionValue : public Value { + public: + UnionValue(Databoard::Type::DataType* dataBoard); + virtual ~UnionValue(); + + virtual std::string writeOut(int indent = 0); + virtual bool equals(const Value* other); + virtual std::string isValid(); + + int getTag(); + Value* getValue(); + void setValue(int tag, Value* value); + + protected: + + int tag; + Value* value; + + }; + } +}