Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5113 in orxonox.OLD for trunk/src/util/loading


Ignore:
Timestamp:
Aug 23, 2005, 11:18:39 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk:restoring the trunk…

Location:
trunk/src/util/loading
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/loading/load_param.cc

    r5111 r5113  
    1717
    1818#include "list.h"
    19 #include "array.h"
    2019#include "base_object.h"
    2120
     
    386385 * searches for classes, which beginn with classNameBegin
    387386 * @param classNameBegin the beginning string of a Class
    388  * @return a NEW char-array with ClassNames. The ARRAY should be deleted afterwards,
     387 * @return a NEW char-array with ClassNames. The LIST should be deleted afterwards,
    389388 * !! The strings MUST NOT be deleted !!
    390389 */
    391 Array<char*>* LoadClassDescription::searchClassWithShort(const char* classNameBegin)
     390tList<const char>* LoadClassDescription::searchClassWithShort(const char* classNameBegin)
    392391{
    393392  unsigned int searchLength = strlen(classNameBegin);
    394   Array<char*>* retVal = new Array<char*>;
     393  tList<const char>* retVal = new tList<const char>;
    395394
    396395  tIterator<LoadClassDescription>* iterator = LoadClassDescription::classList->getIterator();
     
    401400        !strncasecmp(enumClassDesc->className, classNameBegin, searchLength))
    402401    {
    403       retVal->addEntry(enumClassDesc->className);
     402      retVal->add(enumClassDesc->className);
    404403    }
    405404    enumClassDesc = iterator->nextElement();
     
    407406  delete iterator;
    408407
    409   retVal->finalizeArray();
    410408  return retVal;
    411409}
  • trunk/src/util/loading/load_param.h

    r5111 r5113  
    3131// Forward Declaration //
    3232template<class T> class tList;
    33 template<class T> class Array;
    3433
    3534//! macro that makes it even more easy to load a Parameter
     
    312311
    313312  static void printAll(const char* fileName = NULL);
    314   static Array<char*>* searchClassWithShort(const char* classNameBegin);
     313  static tList<const char>* searchClassWithShort(const char* classNameBegin);
    315314//  static const LoadParamDescription* getClass(const char* className);
    316315
Note: See TracChangeset for help on using the changeset viewer.