diff options
Diffstat (limited to 'core/src/Model/Workflow/Value.hpp')
-rw-r--r-- | core/src/Model/Workflow/Value.hpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/core/src/Model/Workflow/Value.hpp b/core/src/Model/Workflow/Value.hpp new file mode 100644 index 0000000..eb99c14 --- /dev/null +++ b/core/src/Model/Workflow/Value.hpp @@ -0,0 +1,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; +}; |