X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FValue.cpp;fp=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FValue.cpp;h=281ac5d8acb7231b8e3128e3c222a0ae36b79cda;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/Value.cpp b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/Value.cpp new file mode 100644 index 000000000..281ac5d8a --- /dev/null +++ b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/Value.cpp @@ -0,0 +1,58 @@ +#include "Value.h" + +#include "DataType.h" + +#include + +namespace Databoard { + + namespace Value { + + Value::Value(Databoard::Type::DataType* dataBoard) + { + object = NULL; + + this->dataBoard = dataBoard; + } + + + Value::~Value() + { + } + + void* Value::getObject() + { + return object; + } + + Databoard::Type::DataType* Value::type() + { + return dataBoard; + } + + void Value::freeType() + { + delete dataBoard; + dataBoard = 0; + } + + std::string Value::writeOut(int indent) + { + std::string s; + + s.append(2 * indent, ' '); + + return s; + } + + bool Value::equals(const Value* /*other*/) + { + return true; + } + + std::string Value::isValid() + { + return "not implemented!"; + } + } +}