Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5634 in orxonox.OLD for trunk/src/lib/shell


Ignore:
Timestamp:
Nov 18, 2005, 6:09:01 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Executor works just fine.
Changed: Paramerte* to MT_*, to make things more general

File:
1 edited

Legend:

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

    r5555 r5634  
    584584    switch (this->parameters[i])
    585585    {
    586       case ParameterBool:
     586      case MT_BOOL:
    587587        this->defaultValue[i].setInt(va_arg(defaultList, int));
    588588        break;
    589       case ParameterChar:
     589      case MT_CHAR:
    590590        this->defaultValue[i].setChar((char)va_arg(defaultList, int));
    591591        break;
    592       case ParameterString:
     592      case MT_STRING:
    593593        this->defaultValue[i].setString(va_arg(defaultList, char*));
    594594        break;
    595       case ParameterInt:
     595      case MT_INT:
    596596        this->defaultValue[i].setInt(va_arg(defaultList, int));
    597597        break;
    598       case ParameterUInt:
     598/*      case MT_UINT:
    599599        this->defaultValue[i].setInt((int)va_arg(defaultList, unsigned int));
    600         break;
    601       case ParameterFloat:
     600        break;*/
     601      case MT_FLOAT:
    602602        this->defaultValue[i].setFloat(va_arg(defaultList, double));
    603603        break;
    604       case ParameterLong:
     604/*      case MT_LONG:
    605605        this->defaultValue[i].setInt((int) va_arg(defaultList, long));
    606         break;
     606        break;*/
    607607      default:
    608608        break;
     
    654654const char* ShellCommandBase::paramToString(long parameter)
    655655{
    656   switch (parameter)
     656  return MultiType::MultiTypeToString((MT_Type)parameter);
     657// FIXME
     658  /*  switch (parameter)
    657659  {
    658660    case ParameterBool:
     
    680682      return "NULL";
    681683      break;
    682   }
    683 }
     684  }*/
     685}
Note: See TracChangeset for help on using the changeset viewer.