Changeset 5102 in orxonox.OLD for trunk/src/util/loading
- Timestamp:
- Aug 22, 2005, 5:26:29 PM (19 years ago)
- Location:
- trunk/src/util/loading
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/loading/load_param.cc
r5100 r5102 17 17 18 18 #include "list.h" 19 #include "array.h"20 19 #include "base_object.h" 21 20 … … 386 385 * searches for classes, which beginn with classNameBegin 387 386 * @param classNameBegin the beginning string of a Class 388 * @return a NEW char-array with ClassNames. The ARRAYshould be deleted afterwards,387 * @return a NEW char-array with ClassNames. The LIST should be deleted afterwards, 389 388 * !! The strings MUST NOT be deleted !! 390 389 */ 391 Array<char*>* LoadClassDescription::searchClassWithShort(const char* classNameBegin)390 tList<const char>* LoadClassDescription::searchClassWithShort(const char* classNameBegin) 392 391 { 393 392 unsigned int searchLength = strlen(classNameBegin); 394 Array<char*>* retVal = new Array<char*>;393 tList<const char>* retVal = new tList<const char>; 395 394 396 395 tIterator<LoadClassDescription>* iterator = LoadClassDescription::classList->getIterator(); … … 401 400 !strncasecmp(enumClassDesc->className, classNameBegin, searchLength)) 402 401 { 403 retVal->add Entry(enumClassDesc->className);402 retVal->add(enumClassDesc->className); 404 403 } 405 404 enumClassDesc = iterator->nextElement(); … … 407 406 delete iterator; 408 407 409 retVal->finalizeArray();410 408 return retVal; 411 409 } -
trunk/src/util/loading/load_param.h
r5100 r5102 31 31 // Forward Declaration // 32 32 template<class T> class tList; 33 template<class T> class Array;34 33 35 34 //! macro that makes it even more easy to load a Parameter … … 312 311 313 312 static void printAll(const char* fileName = NULL); 314 static Array<char*>* searchClassWithShort(const char* classNameBegin);313 static tList<const char>* searchClassWithShort(const char* classNameBegin); 315 314 // static const LoadParamDescription* getClass(const char* className); 316 315
Note: See TracChangeset
for help on using the changeset viewer.