aboutsummaryrefslogtreecommitdiff
path: root/core/src/Model/Workflow/Value.hpp
blob: eb99c143ff66dab39851f5f19dcdd55308672cf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once

class BaseValue {
public:
	enum Kind {
		KD_Numeric,
		KD_Text,
		KD_DateTime,

		/// An unspecified type, otherwise known as "any" in some contexts.
		KindInvalid,
		KindCount = KindInvalid,
	};

private:
	Kind mKind;

public:
	BaseValue(Kind kind);
	virtual ~BaseValue() = default;

	BaseValue(const BaseValue&) = delete;
	BaseValue& operator=(const BaseValue&) = delete;
	BaseValue(BaseValue&&) = default;
	BaseValue& operator=(BaseValue&&) = default;

	Kind GetKind() const;
};