diff options
Diffstat (limited to 'src/prototype_manager.h')
-rw-r--r-- | src/prototype_manager.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/prototype_manager.h b/src/prototype_manager.h new file mode 100644 index 0000000..3fadd23 --- /dev/null +++ b/src/prototype_manager.h | |||
@@ -0,0 +1,23 @@ | |||
1 | #ifndef PROTOTYPE_MANAGER_H_83CECCA6 | ||
2 | #define PROTOTYPE_MANAGER_H_83CECCA6 | ||
3 | |||
4 | #include <string> | ||
5 | #include <map> | ||
6 | #include "prototype.h" | ||
7 | |||
8 | class PrototypeManager { | ||
9 | public: | ||
10 | |||
11 | PrototypeManager(std::string path); | ||
12 | |||
13 | inline const Prototype& getPrototype(std::string name) const | ||
14 | { | ||
15 | return prototypes_.at(name); | ||
16 | } | ||
17 | |||
18 | private: | ||
19 | |||
20 | std::map<std::string, Prototype> prototypes_; | ||
21 | }; | ||
22 | |||
23 | #endif /* end of include guard: PROTOTYPE_MANAGER_H_83CECCA6 */ | ||