From bc9d1725c5cca89f43c8e314e6bb8088f75acf27 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 2 Feb 2025 15:08:42 +0500 Subject: feat: a base class for sets --- src/sets/entryset.hpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/sets/entryset.hpp (limited to 'src/sets/entryset.hpp') diff --git a/src/sets/entryset.hpp b/src/sets/entryset.hpp new file mode 100644 index 0000000..aa24b74 --- /dev/null +++ b/src/sets/entryset.hpp @@ -0,0 +1,24 @@ +#pragma once + +#include +#include +#include + +namespace silly::editor { + template + class EntrySet { + public: + EntrySet() = default; + ~EntrySet() = default; + + virtual void add_entry(const std::string &path, Type type) = 0; + virtual void remove_entry(const EntryType &entry) = 0; + + const std::vector> &get_entries() const { + return this->entries; + } + + protected: + std::vector> entries; + }; +} \ No newline at end of file -- cgit v1.2.3