Changeset 7319 in orxonox.OLD for trunk/src/lib/shell/shell_command.cc
- Timestamp:
- Apr 17, 2006, 1:00:09 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_command.cc
r7225 r7319 165 165 SubString inputSplits(executionString, " \t\n,"); 166 166 167 if (inputSplits. getCount() == 0)167 if (inputSplits.size() == 0) 168 168 return false; 169 if (inputSplits. getCount() >= 1)169 if (inputSplits.size() >= 1) 170 170 { 171 171 // CHECK FOR ALIAS … … 181 181 if (objectList != NULL) 182 182 { 183 if (inputSplits. getCount() > 1)183 if (inputSplits.size() > 1) 184 184 { 185 185 … … 210 210 } 211 211 212 if (commandClass != NULL && inputSplits. getCount() >= 2)212 if (commandClass != NULL && inputSplits.size() >= 2) 213 213 { 214 214 if (objectList != NULL) … … 231 231 } 232 232 // match a function. 233 if (commandClass != NULL && (fktPos == 1 || (fktPos == 2 && inputSplits. getCount() >= 3)))233 if (commandClass != NULL && (fktPos == 1 || (fktPos == 2 && inputSplits.size() >= 3))) 234 234 { 235 235 list<ShellCommand*>::iterator cmdIT; … … 240 240 if (objectPointer == NULL && (*cmdIT)->executor->getType() & Executor_Objective) 241 241 return false; 242 if (inputSplits. getCount() > fktPos+1)242 if (inputSplits.size() > fktPos+1) 243 243 (*cmdIT)->executor->execute(objectPointer, executionString.substr(inputSplits.getOffset(fktPos +1))); /// TODO CHECK IF OK 244 244 else
Note: See TracChangeset
for help on using the changeset viewer.