]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/MapValue.h
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.databoard / cpp / DataBoardTest / DataBoard / MapValue.h
index c1af2accb74a826a0a99c51ed0a42614dc1d3625..e304c1b199a53adcf87568226c2cd6db283b28ee 100644 (file)
@@ -1,51 +1,51 @@
-#pragma once\r
-\r
-#include "Value.h"\r
-\r
-#include <string>\r
-#include <map>\r
-\r
-namespace Databoard {\r
-       namespace Value {\r
-\r
-               struct ValueComparison {\r
-                       bool operator()(Value* const &a, Value* const &b) const;\r
-               };\r
-\r
-               typedef std::map<Value*, Value*, ValueComparison> MKVMap;\r
-\r
-               class DATABOARD_API MapValue : public Value {\r
-               public:\r
-                       MapValue(Databoard::Type::DataType* dataBoard);\r
-                       virtual ~MapValue();\r
-\r
-                       virtual std::string writeOut(int indent = 0);\r
-                       virtual bool equals(const Value* other);\r
-                       virtual std::string isValid();\r
-\r
-                       bool put(Value* key, Value* value);\r
-                       int count();\r
-\r
-                       Value* get(Value* key);\r
-                       bool containsKey(Value* key);\r
-                       Value* remove(Value* key);\r
-                       void clear();\r
-\r
-                       // startkey inclusive, endkey exclusive\r
-                       // https://www.simantics.org/wiki/index.php/Databoard_Specification#Order\r
-                       void removeRange(Value* startKey, Value* endKey);\r
-\r
-                       Value* getCeiling(Value* key);\r
-                       Value* getFlooring(Value* key);\r
-                       Value* getHighest();\r
-                       Value* getLowest();\r
-                       Value* getHigher(Value* key);\r
-                       Value* getLower(Value* key);\r
-\r
-               protected:\r
-\r
-                       MKVMap values;\r
-\r
-               };\r
-       }\r
-}\r
+#pragma once
+
+#include "Value.h"
+
+#include <string>
+#include <map>
+
+namespace Databoard {
+       namespace Value {
+
+               struct ValueComparison {
+                       bool operator()(Value* const &a, Value* const &b) const;
+               };
+
+               typedef std::map<Value*, Value*, ValueComparison> MKVMap;
+
+               class DATABOARD_API MapValue : public Value {
+               public:
+                       MapValue(Databoard::Type::DataType* dataBoard);
+                       virtual ~MapValue();
+
+                       virtual std::string writeOut(int indent = 0);
+                       virtual bool equals(const Value* other);
+                       virtual std::string isValid();
+
+                       bool put(Value* key, Value* value);
+                       int count();
+
+                       Value* get(Value* key);
+                       bool containsKey(Value* key);
+                       Value* remove(Value* key);
+                       void clear();
+
+                       // startkey inclusive, endkey exclusive
+                       // https://www.simantics.org/wiki/index.php/Databoard_Specification#Order
+                       void removeRange(Value* startKey, Value* endKey);
+
+                       Value* getCeiling(Value* key);
+                       Value* getFlooring(Value* key);
+                       Value* getHighest();
+                       Value* getLowest();
+                       Value* getHigher(Value* key);
+                       Value* getLower(Value* key);
+
+               protected:
+
+                       MKVMap values;
+
+               };
+       }
+}