Changeset 5708 in orxonox.OLD for trunk/src/util
- Timestamp:
- Nov 22, 2005, 3:31:30 PM (19 years ago)
- Location:
- trunk/src/util/loading
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/loading/load_param.cc
r5691 r5708 82 82 * @param ... the default values !! must be at least count parameters!! 83 83 */ 84 CLoadParam* CLoadParam::defaultValues(unsigned int count, ...) 85 { 86 if (this == NULL) 87 return NULL; 88 84 CLoadParam& CLoadParam::defaultValues(unsigned int count, ...) 85 { 89 86 va_list values; 90 87 va_start(values, count); … … 93 90 this->executor->defaultValues(count, values); 94 91 95 return this;92 return *this; 96 93 } 97 94 … … 102 99 * @returns a pointer to itself. 103 100 */ 104 CLoadParam *CLoadParam::describe(const char* descriptionText)101 CLoadParam& CLoadParam::describe(const char* descriptionText) 105 102 { 106 103 if (LoadClassDescription::parametersDescription && this->paramDesc && !this->paramDesc->getDescription()) … … 108 105 this->paramDesc->setDescription(descriptionText); 109 106 } 110 return this;107 return *this; 111 108 } 112 109 -
trunk/src/util/loading/load_param.h
r5671 r5708 91 91 ~CLoadParam(); 92 92 93 CLoadParam* describe(const char* descriptionText); 94 CLoadParam* defaultValues(unsigned int count, ...); 93 CLoadParam& describe(const char* descriptionText); 94 CLoadParam& defaultValues(unsigned int count, ...); 95 CLoadParam& attribute(const char* attributeName, const Executor& executor); 95 96 96 97 -
trunk/src/util/loading/load_param_description.h
r5671 r5708 45 45 46 46 void print() const; 47 47 48 private: 48 49 char* paramName; //!< The name of the parameter.
Note: See TracChangeset
for help on using the changeset viewer.