X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FOptionalValue.h;h=9e427327e8f1524c696c7d90210557a3127a773d;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=0923fb25c61be8f06677a4d81430ed99e2f1e5d7;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/OptionalValue.h b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/OptionalValue.h index 0923fb25c..9e427327e 100644 --- a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/OptionalValue.h +++ b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/OptionalValue.h @@ -1,34 +1,34 @@ -#pragma once - -#include "Value.h" - -#include - -namespace Databoard { - namespace Value { - - class DATABOARD_API OptionalValue : public Value { - public: - OptionalValue(Databoard::Type::DataType* dataBoard); - virtual ~OptionalValue(); - - virtual std::string writeOut(int indent = 0); - virtual bool equals(const Value* other); - - void setValue(Value* value); - void setNoValue(); - - // Get the value or null if value doesn't exist - Value* getValue(); - bool hasValue(); - - virtual std::string isValid(); - - - protected: - - Value* value; - - }; - } -} +#pragma once + +#include "Value.h" + +#include + +namespace Databoard { + namespace Value { + + class DATABOARD_API OptionalValue : public Value { + public: + OptionalValue(Databoard::Type::DataType* dataBoard); + virtual ~OptionalValue(); + + virtual std::string writeOut(int indent = 0); + virtual bool equals(const Value* other); + + void setValue(Value* value); + void setNoValue(); + + // Get the value or null if value doesn't exist + Value* getValue(); + bool hasValue(); + + virtual std::string isValid(); + + + protected: + + Value* value; + + }; + } +}