summary refs log tree commit diff stats
path: root/src/prototype_manager.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2018-04-21 14:50:52 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2018-04-21 14:50:52 -0400
commit8142a9c87a13cecc7a3698e877f24d89f128c074 (patch)
treecbee6ae85c5c674dd313c7cfe1420477ee55ca95 /src/prototype_manager.h
parent0f70db34d9b47de55b00c558ac3c445f30b7b6a5 (diff)
downloadtherapy-proto-objs.tar.gz
therapy-proto-objs.tar.bz2
therapy-proto-objs.zip
Started working on prototype objects proto-objs
Diffstat (limited to 'src/prototype_manager.h')
-rw-r--r--src/prototype_manager.h23
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
8class PrototypeManager {
9public:
10
11 PrototypeManager(std::string path);
12
13 inline const Prototype& getPrototype(std::string name) const
14 {
15 return prototypes_.at(name);
16 }
17
18private:
19
20 std::map<std::string, Prototype> prototypes_;
21};
22
23#endif /* end of include guard: PROTOTYPE_MANAGER_H_83CECCA6 */