Changeset 9371 in orxonox.OLD for branches/proxy/src/lib/shell
- Timestamp:
- Jul 20, 2006, 11:08:16 PM (18 years ago)
- Location:
- branches/proxy/src/lib/shell
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/shell/shell_command.cc
r9347 r9371 254 254 { 255 255 for (bo = objectList->begin(); bo != objectList->end(); bo++) 256 if ( (*bo)->getName() != NULL &&!nocaseCmp(objectDescriptor, (*bo)->getName(), objectDescriptor.size()))256 if (!nocaseCmp(objectDescriptor, (*bo)->getName(), objectDescriptor.size())) 257 257 boList->push_back(*bo); 258 258 } … … 298 298 for(std::vector<BaseObject*>::const_iterator bo = boList.begin(); bo != boList.end(); ++bo) 299 299 { 300 PRINT(0)("Command '%s' on '%s::%s'\n", sc->get Name(), (*bo)->getClassName(), (*bo)->getName());300 PRINT(0)("Command '%s' on '%s::%s'\n", sc->getCName(), (*bo)->getClassCName(), (*bo)->getCName()); 301 301 (*sc->executor)((*bo), inputSplits.subSet(paramBegin)); 302 302 } … … 331 331 if (this->alias != NULL) 332 332 { 333 PRINTF(2)("not more than one Alias allowed for functions (%s::%s)\n", this->get Name(), this->shellClass->getName());333 PRINTF(2)("not more than one Alias allowed for functions (%s::%s)\n", this->getCName(), this->shellClass->getCName()); 334 334 } 335 335 else … … 369 369 { 370 370 PRINTF(1)("Parameter %d not inside of valid ParameterCount %d of Command %s::%s\n", 371 parameter, this->executor->getParamCount(), this->get Name(), this->shellClass->getName());371 parameter, this->executor->getParamCount(), this->getCName(), this->shellClass->getCName()); 372 372 } 373 373 else … … 385 385 void ShellCommand::help() const 386 386 { 387 PRINT(0)("%s ", this->get Name());387 PRINT(0)("%s ", this->getCName()); 388 388 } 389 389 -
branches/proxy/src/lib/shell/shell_command_class.cc
r7743 r9371 199 199 for (cmdIT = (*classIT)->commandList.begin(); cmdIT != (*classIT)->commandList.end(); cmdIT++) 200 200 { 201 PRINT(0)(" command:'%s' : params:%d: ", (*cmdIT)->get Name(), (*cmdIT)->executor->getParamCount());201 PRINT(0)(" command:'%s' : params:%d: ", (*cmdIT)->getCName(), (*cmdIT)->executor->getParamCount()); 202 202 /// FIXME 203 203 /* for (unsigned int i = 0; i< elem->paramCount; i++) -
branches/proxy/src/lib/shell/shell_completion.cc
r7764 r9371 290 290 for(bo = inputList.begin(); bo != inputList.end(); bo++) 291 291 { 292 if ((*bo)->getName() != NULL && 293 strlen((*bo)->getName()) >= searchLength && 292 if ((*bo)->getName().size() >= searchLength && 294 293 !nocaseCmp((*bo)->getName(), completionBegin, searchLength)) 295 294 {
Note: See TracChangeset
for help on using the changeset viewer.