Changeset 496 for code/branches/FICN/src/orxonox/core/Factory.h
- Timestamp:
- Dec 12, 2007, 10:37:30 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/core/Factory.h
r384 r496 3 3 @brief Definition of the Factory and the BaseFactory class. 4 4 5 The Factory is a singleton, containing two maps to map either the name or the network ID5 The Factory is a singleton, containing two maps to map either the name or the network ID 6 6 of a class with the corresponding Identifier. 7 7 … … 28 28 // ### Factory ### 29 29 // ############################### 30 //! The Factory is used to map name or networkID of a class with its Identifier.30 //! The Factory is used to map the name or the network ID of a class with its Identifier. 31 31 class Factory 32 32 { … … 36 36 static void add(const std::string& name, Identifier* identifier); 37 37 static void changeNetworkID(Identifier* identifier, const unsigned int oldID, const unsigned int newID); 38 static void createClassHierarchy(); 38 39 39 40 private: … … 43 44 44 45 static Factory* pointer_s; //!< The pointer to the singleton 45 std::map<std::string, Identifier*> identifierStringMap_; //!< The map mapping string withIdentifier46 std::map<unsigned int, Identifier*> identifierNetworkIDMap_; //!< The map mapping networkID withIdentifier46 std::map<std::string, Identifier*> identifierStringMap_; //!< The map, mapping the name with the Identifier 47 std::map<unsigned int, Identifier*> identifierNetworkIDMap_; //!< The map, mapping the network ID with the Identifier 47 48 }; 48 49
Note: See TracChangeset
for help on using the changeset viewer.