diff options
author | rtk0c <[email protected]> | 2021-04-19 14:00:47 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2021-04-19 14:00:47 -0700 |
commit | 1e09caaa2980fe901453b4b90985967a51157887 (patch) | |
tree | df61974f9a5efa9a6732bd6d7b1ec1e6d1af182a /core/src/Model/Workflow/Value.hpp | |
parent | b00b306de1140cb7b759ed0f639e8210fd7dffa6 (diff) |
Split workflow into multiple files, fix unity build
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; +}; |