Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7198 in orxonox.OLD for trunk/src/lib/shell/shell_command.cc


Ignore:
Timestamp:
Mar 8, 2006, 2:30:19 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: new Default Values… they now too are in MultiType instead of (count, …) or (count, va_arg) style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell_command.cc

    r6222 r7198  
    292292
    293293/**
    294  * sets default Values of the Commands
    295  * @param count how many default Values to set.
    296  * @param ... the default Values in order. They will be cast to the right type
    297  * @returns itself
    298  *
    299  * Be aware, that when you use this Function, you !!MUST!! match the input as
    300  * count, [EXACTLY THE SAME AS IF YOU WOULD CALL THE FUNCTION UP TO count ARGUMENTS]
    301  */
    302 ShellCommand* ShellCommand::defaultValues(unsigned int count, ...)
     294 * @brief set the default values of the executor
     295 * @param value0 the first default value
     296 * @param value1 the second default value
     297 * @param value2 the third default value
     298 * @param value3 the fourth default value
     299 * @param value4 the fifth default value
     300 */
     301ShellCommand* ShellCommand::defaultValues(const MultiType& value0, const MultiType& value1,
     302                                          const MultiType& value2, const MultiType& value3,
     303                                          const MultiType& value4)
    303304{
    304305  if (this == NULL)
    305306    return NULL;
    306307
    307   va_list values;
    308   va_start(values, count);
    309 
    310   this->executor->defaultValues(count, values);
     308  this->executor->defaultValues(value0, value1, value2, value3, value4);
    311309
    312310  return this;
Note: See TracChangeset for help on using the changeset viewer.