diff options
Diffstat (limited to 'app/source/Cplt/Model/Workflow/Value.hpp')
-rw-r--r-- | app/source/Cplt/Model/Workflow/Value.hpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/app/source/Cplt/Model/Workflow/Value.hpp b/app/source/Cplt/Model/Workflow/Value.hpp index 70fcb57..8e39358 100644 --- a/app/source/Cplt/Model/Workflow/Value.hpp +++ b/app/source/Cplt/Model/Workflow/Value.hpp @@ -8,11 +8,9 @@ #include <string> #include <vector> -class BaseValue -{ +class BaseValue { public: - enum Kind - { + enum Kind { KD_Numeric, KD_Text, KD_DateTime, @@ -30,8 +28,7 @@ public: KindCount = InvalidKind, }; - struct KindInfo - { + struct KindInfo { ImGui::IconType PinIcon; RgbaColor PinColor; }; @@ -64,11 +61,9 @@ public: virtual void WriteTo(std::ostream& stream); }; -class BaseObjectDescription -{ +class BaseObjectDescription { public: - struct Property - { + struct Property { std::string Name; BaseValue::Kind Kind; bool Mutatable = true; @@ -78,8 +73,7 @@ public: std::vector<Property> Properties; }; -class BaseObjectValue : public BaseValue -{ +class BaseObjectValue : public BaseValue { public: /// \param kind A value kind enum, within the range of KD_BaseObject and KD_BaseObjectLast (both inclusive). static const BaseObjectDescription& QueryObjectInfo(Kind kind); |