Changeset 7771 in orxonox.OLD for trunk/src/lib/shell/shell_command.cc
- Timestamp:
- May 23, 2006, 2:19:54 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_command.cc
r7742 r7771 185 185 fillObjectList("", (*alias)->getCommand(), boList); 186 186 } 187 paramBegin = 1; 187 188 return (*alias)->getCommand(); 188 189 } … … 290 291 291 292 unsigned int paramBegin; 292 const ShellCommand* sc ;293 const ShellCommand* sc = NULL; 293 294 std::vector<BaseObject*> boList; 294 295 sc = getCommandFromInput(inputSplits, paramBegin, &boList); 295 296 if (sc != NULL) 296 297 { 297 PRINT(0)("Command %s on ", sc->getName());298 298 for(std::vector<BaseObject*>::const_iterator bo = boList.begin(); bo != boList.end(); ++bo) 299 299 { 300 PRINT(0)(" %s::%s\n", (*bo)->getClassName(), (*bo)->getName());301 (*sc->executor)((*bo), inputSplits.getSubSet(paramBegin) .join());300 PRINT(0)("Command '%s' on '%s::%s'\n", sc->getName(), (*bo)->getClassName(), (*bo)->getName()); 301 (*sc->executor)((*bo), inputSplits.getSubSet(paramBegin)); 302 302 } 303 303 return true;
Note: See TracChangeset
for help on using the changeset viewer.