Changeset 708 for code/branches/FICN/src/orxonox/core/Factory.h
- Timestamp:
- Dec 28, 2007, 10:30:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/core/Factory.h
r682 r708 45 45 46 46 #include <map> 47 #include <string>48 47 49 48 #include "CorePrereqs.h" 49 50 #include "misc/String.h" 50 51 51 52 namespace orxonox … … 60 61 { 61 62 public: 62 static Identifier* getIdentifier(const std::string& name);63 static Identifier* getIdentifier(const String& name); 63 64 static Identifier* getIdentifier(const unsigned int id); 64 static void add(const std::string& name, Identifier* identifier);65 static void add(const String& name, Identifier* identifier); 65 66 static void changeNetworkID(Identifier* identifier, const unsigned int oldID, const unsigned int newID); 66 67 static void createClassHierarchy(); 67 68 68 static Factory* getFactoryPointer(); // avoid overriding pointer_sin the static intialisation process69 static Factory* getFactoryPointer(); // avoid overriding order problem in the static intialisation process 69 70 70 71 private: … … 73 74 ~Factory() {} // don't delete 74 75 75 std::map< std::string, Identifier*> identifierStringMap_; //!< The map, mapping the name with the Identifier76 std::map<String, Identifier*> identifierStringMap_; //!< The map, mapping the name with the Identifier 76 77 std::map<unsigned int, Identifier*> identifierNetworkIDMap_; //!< The map, mapping the network ID with the Identifier 77 78 };
Note: See TracChangeset
for help on using the changeset viewer.