X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FDataValue.h;h=25970e9f6ac508b25404854928f96b17a35da040;hp=7ca1af113dd38cd2f8f28061c08d77668b344f0a;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/DataValue.h b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/DataValue.h index 7ca1af113..25970e9f6 100644 --- a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/DataValue.h +++ b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/DataValue.h @@ -1,62 +1,62 @@ -#pragma once - -namespace Databoard { - namespace Value { - - - class Value { - public: - Value(); - virtual ~Value() = 0; // meniks tää näin.. - }; - - - class Integer : public Value { - public: - Integer(); - Integer(int value); - - virtual ~Integer(); - - int getValue(); - void setValue(int value); - - protected: - - int value; - }; - - - - class Array : public Value { - public: - virtual int size() = 0; - virtual Value get(int index) = 0; - }; - - - - class GenericArray : public Array { - public: - Value get(int index) { return values.get(index); } - private: - std::vector values; - }; - - - class ByteArray : public Array { - public: - Value get(int index) { return null; } - char* getPrimitiveArray() { return null; } - private: - std::vector values; - }; - - class Double : public Value { - public: - double getValue() { return value; } - private: - double value; - } - } +#pragma once + +namespace Databoard { + namespace Value { + + + class Value { + public: + Value(); + virtual ~Value() = 0; // meniks tää näin.. + }; + + + class Integer : public Value { + public: + Integer(); + Integer(int value); + + virtual ~Integer(); + + int getValue(); + void setValue(int value); + + protected: + + int value; + }; + + + + class Array : public Value { + public: + virtual int size() = 0; + virtual Value get(int index) = 0; + }; + + + + class GenericArray : public Array { + public: + Value get(int index) { return values.get(index); } + private: + std::vector values; + }; + + + class ByteArray : public Array { + public: + Value get(int index) { return null; } + char* getPrimitiveArray() { return null; } + private: + std::vector values; + }; + + class Double : public Value { + public: + double getValue() { return value; } + private: + double value; + } + } } \ No newline at end of file