Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Nov 13, 2005, 2:49:48 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: added Aim-class

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

Legend:

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

    r5549 r5556  
    3636class LoadClassDescription;
    3737class LoadParamDescription;
     38class MultiType;
    3839
    3940/**************************
     
    4546 public:
    4647  LoadParamBase* describe(const char* descriptionText);
     48  LoadParamBase* defaultValues(unsigned int count, ...);
    4749
    4850 protected:
     
    5456  const char*              loadString;           //!< The string loaded by this LoadParam
    5557  const void*              pointerToParam;       //!< A Pointer to a Parameter.
     58
     59  MultiType*               defaultValue;
    5660};
    5761
     
    9397#define LoadParam0() \
    9498LoadParam(const TiXmlElement* root, const char* paramName, T* pt2Object, void(T::*function)(), bool multi = false) \
    95   : LoadParamBase(root, pt2Object, paramName, 0, multi, NULL, "") \
     99  : LoadParamBase(root, pt2Object, paramName, 0, multi, NULL) \
    96100{ \
    97101  if (loadString != NULL && root != NULL) \
  • trunk/src/util/loading/load_param_description.cc

    r5549 r5556  
    1515
    1616#include "load_param_description.h"
     17
    1718#include "list.h"
    1819#include <stdarg.h>
  • trunk/src/util/loading/load_param_description.h

    r5549 r5556  
    2626// Forward Declaration //
    2727template<class T> class tList;
     28class MultiType;
    2829
    2930/************************
     
    4950  int*          types;                 //!< What kind of parameters does this function take ??
    5051  char*         description;           //!< A longer description about this function.
    51   char**        defaultValues;         //!< The 'Default Values'.
     52  char**        defaultValues;         //!< The 'Default Values'. @TODO MAKE THIS A MULTITYPE
    5253};
    5354
     
    7172 private:
    7273  static bool                          parametersDescription;  //!< if parameter-description should be enabled.
    73   static tList<LoadClassDescription>*  classList;              //!< a list, that holds all the loadable classes. (after one instance has been loaded)
     74  static tList<LoadClassDescription>*  classList;              //!< a list, that stores all the loadable classes. (after one instance has been loaded)
    7475  char*                                className;              //!< name of the class
     76
    7577  tList<LoadParamDescription>*         paramList;              //!< List of parameters this class knows.
    7678};
Note: See TracChangeset for help on using the changeset viewer.