Changeset 7419 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Apr 28, 2006, 11:47:44 AM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_command.cc
r7418 r7419 283 283 SubString inputSplits(executionString, SubString::WhiteSpacesWithComma); 284 284 285 286 285 // if we do not have any input return 287 286 if (inputSplits.empty()) 288 287 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 } 289 299 290 300 // if we only have one input (!MUST BE AN ALIAS) -
trunk/src/lib/util/executor/executor.h
r7407 r7419 52 52 // EXECUTE 53 53 /** executes a Command @param object the object to apply this to @param parameters the parameters the command takes */ 54 virtual void operator()(BaseObject* object, const std::string& parameters = "") = 0;54 virtual void operator()(BaseObject* object, const std::string& parameters = "") const = 0; 55 55 /** executes a Command @param object the object to apply this to @param parameters the parameters the command takes @brief here for your convenience*/ 56 void execute (BaseObject* object, const std::string& parameters = "") { (*this)(object, parameters); };56 void execute (BaseObject* object, const std::string& parameters = "") const { (*this)(object, parameters); }; 57 57 58 58 // RETRIEVE INFORMATION … … 256 256 } fp; 257 257 258 virtual void operator()(BaseObject* object, const std::string& parameters = "") 258 virtual void operator()(BaseObject* object, const std::string& parameters = "") const 259 259 { 260 260 SubString sub; … … 319 319 320 320 321 virtual void operator()(BaseObject* object, const std::string& parameters = "") 321 virtual void operator()(BaseObject* object, const std::string& parameters = "") const 322 322 { 323 323 SubString sub; -
trunk/src/lib/util/executor/executor_specials.h
r7331 r7419 60 60 * @param loadString ignored in this case 61 61 */ 62 virtual void operator()(BaseObject* object, const std::string& = "") 62 virtual void operator()(BaseObject* object, const std::string& = "") const 63 63 { 64 64 if (object != NULL && this->element != NULL)
Note: See TracChangeset
for help on using the changeset viewer.