]> git.localhorst.tv Git - blank.git/blob - model/ShapeRegistry.hpp
new gcc version
[blank.git] / model / ShapeRegistry.hpp
1 #ifndef BLANK_MODEL_SHAPEREGISTRY_HPP_
2 #define BLANK_MODEL_SHAPEREGISTRY_HPP_
3
4 #include "Shape.hpp"
5
6 #include <map>
7 #include <string>
8
9
10 namespace blank {
11
12 class ShapeRegistry {
13
14 public:
15         ShapeRegistry();
16
17         Shape &Add(const std::string &);
18
19         Shape &Get(const std::string &);
20         const Shape &Get(const std::string &) const;
21
22 private:
23         std::map<std::string, Shape> shapes;
24
25 };
26
27 }
28
29 #endif