Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9371 in orxonox.OLD for branches/proxy/src/lib/shell


Ignore:
Timestamp:
Jul 20, 2006, 11:08:16 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: ORXONOX is now completely std::stringed

Location:
branches/proxy/src/lib/shell
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/shell/shell_command.cc

    r9347 r9371  
    254254      {
    255255        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()))
    257257            boList->push_back(*bo);
    258258      }
     
    298298      for(std::vector<BaseObject*>::const_iterator bo = boList.begin(); bo != boList.end(); ++bo)
    299299      {
    300         PRINT(0)("Command '%s' on '%s::%s'\n", sc->getName(), (*bo)->getClassName(), (*bo)->getName());
     300        PRINT(0)("Command '%s' on '%s::%s'\n", sc->getCName(), (*bo)->getClassCName(), (*bo)->getCName());
    301301        (*sc->executor)((*bo), inputSplits.subSet(paramBegin));
    302302      }
     
    331331    if (this->alias != NULL)
    332332    {
    333       PRINTF(2)("not more than one Alias allowed for functions (%s::%s)\n", this->getName(), this->shellClass->getName());
     333      PRINTF(2)("not more than one Alias allowed for functions (%s::%s)\n", this->getCName(), this->shellClass->getCName());
    334334    }
    335335    else
     
    369369    {
    370370      PRINTF(1)("Parameter %d not inside of valid ParameterCount %d of Command %s::%s\n",
    371                 parameter, this->executor->getParamCount(), this->getName(), this->shellClass->getName());
     371                parameter, this->executor->getParamCount(), this->getCName(), this->shellClass->getCName());
    372372    }
    373373    else
     
    385385  void ShellCommand::help() const
    386386  {
    387     PRINT(0)("%s ", this->getName());
     387    PRINT(0)("%s ", this->getCName());
    388388  }
    389389
  • branches/proxy/src/lib/shell/shell_command_class.cc

    r7743 r9371  
    199199        for (cmdIT = (*classIT)->commandList.begin(); cmdIT != (*classIT)->commandList.end(); cmdIT++)
    200200        {
    201           PRINT(0)("  command:'%s' : params:%d: ", (*cmdIT)->getName(), (*cmdIT)->executor->getParamCount());
     201          PRINT(0)("  command:'%s' : params:%d: ", (*cmdIT)->getCName(), (*cmdIT)->executor->getParamCount());
    202202          /// FIXME
    203203          /*          for (unsigned int i = 0; i< elem->paramCount; i++)
  • branches/proxy/src/lib/shell/shell_completion.cc

    r7764 r9371  
    290290    for(bo = inputList.begin(); bo != inputList.end(); bo++)
    291291    {
    292       if ((*bo)->getName() != NULL &&
    293           strlen((*bo)->getName()) >= searchLength &&
     292      if ((*bo)->getName().size() >= searchLength &&
    294293          !nocaseCmp((*bo)->getName(), completionBegin, searchLength))
    295294      {
Note: See TracChangeset for help on using the changeset viewer.