Changeset 7221 in orxonox.OLD for trunk/src/util/fast_factory.h
- Timestamp:
- Mar 15, 2006, 3:10:45 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/fast_factory.h
r5447 r7221 80 80 81 81 static FastFactory* searchFastFactory(ClassID classID); 82 static FastFactory* searchFastFactory(const char*fastFactoryName);82 static FastFactory* searchFastFactory(const std::string& fastFactoryName); 83 83 84 84 ClassID getStoredID() const { return this->storedClassID; }; 85 85 86 86 protected: 87 FastFactory (ClassID classID, const char* fastFactoryName = NULL);87 FastFactory (ClassID classID, const std::string& fastFactoryName = ""); 88 88 89 89 /** sets the Next factory in the list @param nextFactory the next factory */ … … 121 121 { 122 122 public: 123 static tFastFactory<T>* getFastFactory(ClassID classID, const char*fastFactoryName = NULL);123 static tFastFactory<T>* getFastFactory(ClassID classID, const std::string& fastFactoryName = NULL); 124 124 125 125 private: 126 tFastFactory(ClassID classID, const char*fastFactoryName);126 tFastFactory(ClassID classID, const std::string& fastFactoryName); 127 127 128 128 virtual void fabricate(); … … 136 136 */ 137 137 template<class T> 138 tFastFactory<T>::tFastFactory(ClassID classID, const char*fastFactoryName)138 tFastFactory<T>::tFastFactory(ClassID classID, const std::string& fastFactoryName) 139 139 : FastFactory(classID, fastFactoryName) 140 140 {} … … 147 147 */ 148 148 template<class T> 149 tFastFactory<T>* tFastFactory<T>::getFastFactory(ClassID classID, const char*fastFactoryName)149 tFastFactory<T>* tFastFactory<T>::getFastFactory(ClassID classID, const std::string& fastFactoryName) 150 150 { 151 151 tFastFactory<T>* tmpFac = NULL;
Note: See TracChangeset
for help on using the changeset viewer.