]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/DataValue.h
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.databoard / cpp / DataBoardTest / DataBoard / DataValue.h
index 7ca1af113dd38cd2f8f28061c08d77668b344f0a..25970e9f6ac508b25404854928f96b17a35da040 100644 (file)
@@ -1,62 +1,62 @@
-#pragma once\r
-\r
-namespace Databoard {\r
-       namespace Value {\r
-\r
-\r
-               class Value {\r
-               public:\r
-                       Value();\r
-                       virtual ~Value() = 0; // meniks tää näin..\r
-               };\r
-\r
-\r
-               class Integer : public Value {\r
-               public:\r
-                       Integer();\r
-                       Integer(int value);\r
-\r
-                       virtual ~Integer();\r
-\r
-                       int getValue();\r
-                       void setValue(int value);\r
-\r
-               protected:\r
-\r
-                       int value;\r
-               };\r
-\r
-\r
-\r
-               class Array : public Value {\r
-               public:\r
-                       virtual int size() = 0;\r
-                       virtual Value get(int index) = 0;\r
-               };\r
-\r
-\r
-\r
-               class GenericArray : public Array {\r
-               public:\r
-                       Value get(int index) { return values.get(index); }\r
-               private:\r
-                       std::vector<Value> values;\r
-               };\r
-\r
-\r
-               class ByteArray : public Array {\r
-               public:\r
-                       Value get(int index) { return null; }\r
-                       char* getPrimitiveArray() { return null; }\r
-               private:\r
-                       std::vector<char> values;\r
-               };\r
-\r
-               class Double : public Value {\r
-               public:\r
-                       double getValue() { return value; }\r
-               private:\r
-                       double value;\r
-               }\r
-       }\r
+#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<Value> values;
+               };
+
+
+               class ByteArray : public Array {
+               public:
+                       Value get(int index) { return null; }
+                       char* getPrimitiveArray() { return null; }
+               private:
+                       std::vector<char> values;
+               };
+
+               class Double : public Value {
+               public:
+                       double getValue() { return value; }
+               private:
+                       double value;
+               }
+       }
 }
\ No newline at end of file