blob: a170440d930824716333c07a1bb3cd4f06abf8db (
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
25
26
 | #pragma once
#include "Mapper.hpp"
#include <memory>
#include <vector>
namespace cru::ui::mapper {
class CRU_UI_API MapperRegistry {
 public:
  MapperRegistry();
  CRU_DELETE_COPY(MapperRegistry)
  CRU_DELETE_MOVE(MapperRegistry)
  ~MapperRegistry();
  const std::vector<MapperBase*>& GetAllMappers() const { return mapper_list_; }
  void RegisterMapper(MapperBase* mapper);
  void UnregisterMapper(MapperBase* mapper);
 private:
  std::vector<MapperBase*> mapper_list_;
};
}  // namespace cru::ui::mapper
 |