Line | |
---|
1 | #ifndef _Factory_H__ |
---|
2 | #define _Factory_H__ |
---|
3 | |
---|
4 | #include <map> |
---|
5 | #include <string> |
---|
6 | |
---|
7 | namespace orxonox |
---|
8 | { |
---|
9 | class Identifier; |
---|
10 | class OrxonoxClass; |
---|
11 | |
---|
12 | class ClassFactory |
---|
13 | { |
---|
14 | public: |
---|
15 | static OrxonoxClass* fabricate(const std::string& name); |
---|
16 | static void add(const std::string& name, Identifier* identifier); |
---|
17 | |
---|
18 | private: |
---|
19 | ClassFactory() {} |
---|
20 | ClassFactory(const ClassFactory& factory) {} |
---|
21 | ~ClassFactory() {} |
---|
22 | |
---|
23 | static ClassFactory* pointer_; |
---|
24 | std::map<std::string, Identifier*> identifierMap_; |
---|
25 | }; |
---|
26 | } |
---|
27 | |
---|
28 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.