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