Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Apr 28, 2006, 11:47:44 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: Test in Execute (first implementation)

File:
1 edited

Legend:

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

    r7418 r7419  
    283283    SubString inputSplits(executionString, SubString::WhiteSpacesWithComma);
    284284
    285 
    286285    // if we do not have any input return
    287286    if (inputSplits.empty())
    288287      return false;
     288
     289    unsigned int paramBegin;
     290    const ShellCommand* sc;
     291    std::vector<BaseObject*> boList;
     292    sc = getCommandFromInput(inputSplits, paramBegin, &boList);
     293    if (sc != NULL)
     294    {
     295      PRINT(0)("Command %s on ", sc->getName());
     296      for(std::vector<BaseObject*>::const_iterator bo = boList.begin(); bo != boList.end(); ++bo)
     297        PRINT(0)("%s::%s\n", (*bo)->getClassName(), (*bo)->getName());
     298    }
    289299
    290300    // if we only have one input (!MUST BE AN ALIAS)
Note: See TracChangeset for help on using the changeset viewer.