Changeset 7198 in orxonox.OLD for trunk/src/lib/util/loading
- Timestamp:
- Mar 8, 2006, 2:30:19 PM (19 years ago)
- Location:
- trunk/src/lib/util/loading
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/loading/load_param.cc
r7193 r7198 63 63 if (likely(this->object != NULL) && 64 64 ( this->loadString != NULL || 65 ((this->executor->getType() & Executor_NoLoadString) == Executor_NoLoadString)))65 ((this->executor->getType() & Executor_NoLoadString) == Executor_NoLoadString))) 66 66 { 67 67 PRINTF(4)("Loading '%s' with Parameters '%s' onto: '%s'(%s)\n", this->paramName, this->loadString, this->object->getName(), this->object->getClassName()); … … 73 73 74 74 /** 75 * set the default values of the executor 76 * @param count how many default values to set. 77 * @param ... the default values !! must be at least count parameters!! 78 */ 79 CLoadParam& CLoadParam::defaultValues(unsigned int count, ...) 80 { 81 va_list values; 82 va_start(values, count); 83 84 assert(executor != NULL); 85 this->executor->defaultValues(count, values); 75 * @brief set the default values of the executor 76 * @param value0 the first default value 77 * @param value1 the second default value 78 * @param value2 the third default value 79 * @param value3 the fourth default value 80 * @param value4 the fifth default value 81 */ 82 CLoadParam& CLoadParam::defaultValues(const MultiType& value0, const MultiType& value1, 83 const MultiType& value2, const MultiType& value3, 84 const MultiType& value4) 85 { 86 assert(this->executor != NULL); 87 this->executor->defaultValues(value0, value1, value2, value3, value4); 86 88 87 89 return *this; … … 97 99 { 98 100 if (LoadClassDescription::parametersDescription && this->paramDesc && !this->paramDesc->getDescription()) 99 100 101 101 { 102 this->paramDesc->setDescription(descriptionText); 103 } 102 104 return *this; 103 105 } … … 239 241 node = element->FirstChild(); 240 242 while( node != NULL) 241 242 243 244 243 { 244 if( node->ToText()) return node->Value(); 245 node = node->NextSibling(); 246 } 245 247 return NULL; 246 248 } -
trunk/src/lib/util/loading/load_param.h
r7130 r7198 91 91 92 92 CLoadParam& describe(const char* descriptionText); 93 CLoadParam& defaultValues(unsigned int count, ...); 93 CLoadParam& defaultValues(const MultiType& value0 = MT_NULL, const MultiType& value1 = MT_NULL, 94 const MultiType& value2 = MT_NULL, const MultiType& value3 = MT_NULL, 95 const MultiType& value4 = MT_NULL); 94 96 CLoadParam& attribute(const char* attributeName, const Executor& executor); 95 97
Note: See TracChangeset
for help on using the changeset viewer.