X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FArrayValue.h;h=e3869869cc7599c6ce0b0f4a09de4e0e79c777ad;hb=HEAD;hp=390096fe77888d47d923dd0c725f010a0a980603;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/ArrayValue.h b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/ArrayValue.h index 390096fe7..e3869869c 100644 --- a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/ArrayValue.h +++ b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/ArrayValue.h @@ -1,37 +1,37 @@ -#pragma once - -#include "Value.h" - -#include -#include - -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 getAll(); - - virtual std::string isValid(); - - protected: - - std::vector values; - - }; - } -} +#pragma once + +#include "Value.h" + +#include +#include + +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 getAll(); + + virtual std::string isValid(); + + protected: + + std::vector values; + + }; + } +}