Changeset 5556 in orxonox.OLD for trunk/src/util/loading
- Timestamp:
- Nov 13, 2005, 2:49:48 PM (19 years ago)
- Location:
- trunk/src/util/loading
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/loading/load_param.h
r5549 r5556 36 36 class LoadClassDescription; 37 37 class LoadParamDescription; 38 class MultiType; 38 39 39 40 /************************** … … 45 46 public: 46 47 LoadParamBase* describe(const char* descriptionText); 48 LoadParamBase* defaultValues(unsigned int count, ...); 47 49 48 50 protected: … … 54 56 const char* loadString; //!< The string loaded by this LoadParam 55 57 const void* pointerToParam; //!< A Pointer to a Parameter. 58 59 MultiType* defaultValue; 56 60 }; 57 61 … … 93 97 #define LoadParam0() \ 94 98 LoadParam(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) \ 96 100 { \ 97 101 if (loadString != NULL && root != NULL) \ -
trunk/src/util/loading/load_param_description.cc
r5549 r5556 15 15 16 16 #include "load_param_description.h" 17 17 18 #include "list.h" 18 19 #include <stdarg.h> -
trunk/src/util/loading/load_param_description.h
r5549 r5556 26 26 // Forward Declaration // 27 27 template<class T> class tList; 28 class MultiType; 28 29 29 30 /************************ … … 49 50 int* types; //!< What kind of parameters does this function take ?? 50 51 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 52 53 }; 53 54 … … 71 72 private: 72 73 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) 74 75 char* className; //!< name of the class 76 75 77 tList<LoadParamDescription>* paramList; //!< List of parameters this class knows. 76 78 };
Note: See TracChangeset
for help on using the changeset viewer.