X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmodel%2FShapeRegistry.hpp;fp=src%2Fmodel%2FShapeRegistry.hpp;h=53db5693aa1e3e708cfb8a618b8c3ab985d22644;hb=3a487f44c26f9bb9d1a1c831406b6497b2b3b425;hp=0000000000000000000000000000000000000000;hpb=bc48fbd6be3283a2e1aaa9249909fab32c617692;p=blank.git diff --git a/src/model/ShapeRegistry.hpp b/src/model/ShapeRegistry.hpp new file mode 100644 index 0000000..53db569 --- /dev/null +++ b/src/model/ShapeRegistry.hpp @@ -0,0 +1,29 @@ +#ifndef BLANK_MODEL_SHAPEREGISTRY_HPP_ +#define BLANK_MODEL_SHAPEREGISTRY_HPP_ + +#include "Shape.hpp" + +#include +#include + + +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 shapes; + +}; + +} + +#endif