]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/UnionValue.h
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.databoard / cpp / DataBoardTest / DataBoard / UnionValue.h
1 #pragma once
2
3 #include "Value.h"
4
5 #include <string>
6
7 namespace Databoard {
8         namespace Value {
9
10                 class DATABOARD_API UnionValue : public Value {
11                 public:
12                         UnionValue(Databoard::Type::DataType* dataBoard);
13                         virtual ~UnionValue();
14
15                         virtual std::string writeOut(int indent = 0);
16                         virtual bool equals(const Value* other);
17                         virtual std::string isValid();
18
19                         int getTag();
20                         Value* getValue();
21                         void setValue(int tag, Value* value);
22
23                 protected:
24
25                         int tag;
26                         Value* value;
27
28                 };
29         }
30 }