diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-04-21 14:50:52 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-04-21 14:50:52 -0400 |
commit | 8142a9c87a13cecc7a3698e877f24d89f128c074 (patch) | |
tree | cbee6ae85c5c674dd313c7cfe1420477ee55ca95 /src/prototype_manager.h | |
parent | 0f70db34d9b47de55b00c558ac3c445f30b7b6a5 (diff) | |
download | therapy-8142a9c87a13cecc7a3698e877f24d89f128c074.tar.gz therapy-8142a9c87a13cecc7a3698e877f24d89f128c074.tar.bz2 therapy-8142a9c87a13cecc7a3698e877f24d89f128c074.zip |
Started working on prototype objects proto-objs
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 */ | ||