blob: aa24b74af3439fe95c3bf6387507b9ffb7886b98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include <memory>
#include <string>
#include <vector>
namespace silly::editor {
template <typename EntryType, typename Type>
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<std::shared_ptr<EntryType>> &get_entries() const {
return this->entries;
}
protected:
std::vector<std::shared_ptr<EntryType>> entries;
};
}
|