]> git.localhorst.tv Git - blank.git/blobdiff - src/model/ShapeRegistry.hpp
actually load shapes
[blank.git] / src / model / ShapeRegistry.hpp
diff --git a/src/model/ShapeRegistry.hpp b/src/model/ShapeRegistry.hpp
new file mode 100644 (file)
index 0000000..53db569
--- /dev/null
@@ -0,0 +1,29 @@
+#ifndef BLANK_MODEL_SHAPEREGISTRY_HPP_
+#define BLANK_MODEL_SHAPEREGISTRY_HPP_
+
+#include "Shape.hpp"
+
+#include <map>
+#include <string>
+
+
+namespace blank {
+
+class ShapeRegistry {
+
+public:
+       ShapeRegistry();
+
+       Shape &Add(const std::string &);
+
+       Shape &Get(const std::string &);
+       const Shape &Get(const std::string &) const;
+
+private:
+       std::map<std::string, Shape> shapes;
+
+};
+
+}
+
+#endif