Changeset 9406 in orxonox.OLD for trunk/src/util/fast_factory.cc
- Timestamp:
- Jul 24, 2006, 11:09:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/fast_factory.cc
r8350 r9406 21 21 #include <string.h> 22 22 23 using namespace std; 23 24 24 25 25 /** … … 79 79 void FastFactory::registerFastFactory(FastFactory* fastFactory) 80 80 { 81 PRINTF(4)("Registered FastFactory for '%s'\n", fastFactory->get Name());81 PRINTF(4)("Registered FastFactory for '%s'\n", fastFactory->getCName()); 82 82 83 83 if( FastFactory::first == NULL) … … 128 128 while (tmpFac != NULL) 129 129 { 130 if (fastFactoryName == tmpFac->get Name())130 if (fastFactoryName == tmpFac->getCName()) 131 131 return tmpFac; 132 132 tmpFac = tmpFac->next; … … 145 145 while (tmpFac != NULL) 146 146 { 147 PRINTF(4)("DELETEING ALL OF %s\n",tmpFac->get Name());147 PRINTF(4)("DELETEING ALL OF %s\n",tmpFac->getCName()); 148 148 tmpFac->flush(hardFLUSH); 149 149 tmpFac = tmpFac->next; … … 188 188 /* if (this->storedDeadObjects + this->storedLivingObjects >= count) 189 189 { 190 PRINTF(3)("not creating new Objects for class %s, because the requested count already exists\n", this->getClass Name());190 PRINTF(3)("not creating new Objects for class %s, because the requested count already exists\n", this->getClassCName()); 191 191 }*/ 192 192 for (unsigned int i = this->storedDeadObjects; i < count; i++) … … 202 202 BaseObject* FastFactory::resurrect() 203 203 { 204 PRINTF(4)("Resurecting Object of type %s\n", this->get Name());204 PRINTF(4)("Resurecting Object of type %s\n", this->getCName()); 205 205 if (unlikely(this->deadList == NULL)) 206 206 { 207 207 PRINTF(3)("The deadList of Class %s is empty, this may be either because it has not been filled yet, or the cache is to small.\n" \ 208 208 " Developer: try increasing the count with FastFactory::prepare(contHigher than actual)\n" \ 209 " Fabricating a new %s\n", this->get Name(), this->getName());209 " Fabricating a new %s\n", this->getCName(), this->getCName()); 210 210 this->fabricate(); 211 211 return this->resurrect();
Note: See TracChangeset
for help on using the changeset viewer.