Changeset 553 for code/branches/FICN/src/orxonox/core/Factory.h
- Timestamp:
- Dec 17, 2007, 1:19:13 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/core/Factory.h
r552 r553 38 38 static void createClassHierarchy(); 39 39 40 static Factory* getFactoryPointer();// avoid overriding pointer_s in the static intialisation process 41 40 42 private: 41 43 Factory() {} // don't create 42 44 Factory(const Factory& factory) {} // don't copy 43 45 ~Factory() {} // don't delete 46 static void checkPointer(); 44 47 45 /**46 @brief Checks if the pointer to the only Factory-object exists and creates it, if not.47 */48 inline static void checkPointer()49 {50 if (!pointer_s)51 pointer_s = new Factory;52 }53 54 static Factory* pointer_s; //!< The pointer to the singleton55 48 std::map<std::string, Identifier*> identifierStringMap_; //!< The map, mapping the name with the Identifier 56 49 std::map<unsigned int, Identifier*> identifierNetworkIDMap_; //!< The map, mapping the network ID with the Identifier
Note: See TracChangeset
for help on using the changeset viewer.