From 7fe47a9d5b1727a61dc724523b530762f6d6ba19 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Thu, 30 Jun 2022 21:38:53 -0700 Subject: Restructure project --- .../Cplt/Model/Workflow/Values/Dictionary.hpp | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 app/source/Cplt/Model/Workflow/Values/Dictionary.hpp (limited to 'app/source/Cplt/Model/Workflow/Values/Dictionary.hpp') diff --git a/app/source/Cplt/Model/Workflow/Values/Dictionary.hpp b/app/source/Cplt/Model/Workflow/Values/Dictionary.hpp new file mode 100644 index 0000000..6eff308 --- /dev/null +++ b/app/source/Cplt/Model/Workflow/Values/Dictionary.hpp @@ -0,0 +1,25 @@ +#pragma once + +#include + +#include +#include +#include +#include + +class DictionaryValue : public BaseValue +{ +private: + tsl::array_map> mElements; + +public: + static bool IsInstance(const BaseValue* value); + DictionaryValue(); + + int GetCount() const; + BaseValue* Find(std::string_view key); + + BaseValue* Insert(std::string_view key, std::unique_ptr& value); + BaseValue& InsertOrReplace(std::string_view key, std::unique_ptr value); + void Remove(std::string_view key); +}; -- cgit v1.2.3-70-g09d2