-#pragma once\r
-\r
-#include "Value.h"\r
-\r
-#include <string>\r
-#include <vector>\r
-\r
-namespace Databoard {\r
- namespace Value {\r
-\r
- class DATABOARD_API ArrayValue : public Value {\r
- public:\r
- ArrayValue(Databoard::Type::DataType* dataBoard);\r
- virtual ~ArrayValue();\r
-\r
- virtual std::string writeOut(int indent = 0);\r
- virtual bool equals(const Value* other);\r
-\r
- void add(Value* value);\r
- void insert(Value* value, int index);\r
- int count();\r
- void remove(int index, int count);\r
- void clear();\r
- Value* get(int index);\r
-\r
- // snapshot of the array\r
- std::vector<Value*> getAll();\r
-\r
- virtual std::string isValid();\r
-\r
- protected:\r
-\r
- std::vector<Value*> values;\r
-\r
- };\r
- }\r
-}\r
+#pragma once
+
+#include "Value.h"
+
+#include <string>
+#include <vector>
+
+namespace Databoard {
+ namespace Value {
+
+ class DATABOARD_API ArrayValue : public Value {
+ public:
+ ArrayValue(Databoard::Type::DataType* dataBoard);
+ virtual ~ArrayValue();
+
+ virtual std::string writeOut(int indent = 0);
+ virtual bool equals(const Value* other);
+
+ void add(Value* value);
+ void insert(Value* value, int index);
+ int count();
+ void remove(int index, int count);
+ void clear();
+ Value* get(int index);
+
+ // snapshot of the array
+ std::vector<Value*> getAll();
+
+ virtual std::string isValid();
+
+ protected:
+
+ std::vector<Value*> values;
+
+ };
+ }
+}