Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Nov 22, 2005, 3:31:30 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: newer data-revision

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

Legend:

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

    r5691 r5708  
    8282 * @param ... the default values !! must be at least count parameters!!
    8383 */
    84 CLoadParam* CLoadParam::defaultValues(unsigned int count, ...)
    85 {
    86   if (this == NULL)
    87     return NULL;
    88 
     84CLoadParam& CLoadParam::defaultValues(unsigned int count, ...)
     85{
    8986  va_list values;
    9087  va_start(values, count);
     
    9390  this->executor->defaultValues(count, values);
    9491
    95   return this;
     92  return *this;
    9693}
    9794
     
    10299 * @returns a pointer to itself.
    103100*/
    104 CLoadParam* CLoadParam::describe(const char* descriptionText)
     101CLoadParam& CLoadParam::describe(const char* descriptionText)
    105102{
    106103  if (LoadClassDescription::parametersDescription && this->paramDesc && !this->paramDesc->getDescription())
     
    108105      this->paramDesc->setDescription(descriptionText);
    109106    }
    110   return this;
     107  return *this;
    111108}
    112109
  • trunk/src/util/loading/load_param.h

    r5671 r5708  
    9191    ~CLoadParam();
    9292
    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);
    9596
    9697
  • trunk/src/util/loading/load_param_description.h

    r5671 r5708  
    4545
    4646  void print() const;
     47
    4748 private:
    4849  char*         paramName;             //!< The name of the parameter.
Note: See TracChangeset for help on using the changeset viewer.