]> git.localhorst.tv Git - gong.git/blob - src/app/ResourceIndex.hpp
code, assets, and other stuff stolen from blank
[gong.git] / src / app / ResourceIndex.hpp
1 #ifndef GONG_APP_RESOURCEINDEX_HPP_
2 #define GONG_APP_RESOURCEINDEX_HPP_
3
4 #include <map>
5 #include <string>
6
7
8 namespace gong {
9 namespace app {
10
11 class ResourceIndex {
12
13         using MapType = std::map<std::string, std::size_t>;
14
15 public:
16         ResourceIndex();
17
18         std::size_t GetID(const std::string &);
19
20         std::size_t Size() const noexcept { return id_map.size(); }
21         const MapType &Entries() const noexcept { return id_map; }
22
23 private:
24         MapType id_map;
25
26 };
27
28 }
29 }
30
31 #endif