Changeset 7386 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Apr 26, 2006, 10:24:31 PM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_command.h
r7374 r7386 79 79 protected: 80 80 ShellCommand(const std::string& commandName, const std::string& className, const Executor& executor); 81 ~ShellCommand();81 virtual ~ShellCommand(); 82 82 83 83 static bool isRegistered(const std::string& commandName, const std::string& className); -
trunk/src/lib/shell/shell_command_class.cc
r7374 r7386 66 66 * @returns true on success, false otherwise 67 67 */ 68 bool ShellCommandClass::getCommandListOfClass(const std::string& className, std::list<std::string>* stringList) 69 { 70 if (stringList == NULL) 71 return false; 72 68 bool ShellCommandClass::getCommandListOfClass(const std::string& className, std::list<std::string>& stringList) 69 { 73 70 std::list<ShellCommandClass*>::iterator elem; 74 71 for(elem = ShellCommandClass::commandClassList->begin(); elem != ShellCommandClass::commandClassList->end(); elem++) … … 78 75 std::list<ShellCommand*>::iterator command; 79 76 for(command = (*elem)->commandList.begin(); command != (*elem)->commandList.end(); command++) 80 stringList ->push_back((*command)->getName());77 stringList.push_back((*command)->getName()); 81 78 } 82 79 } … … 89 86 * @returns true on success, false otherwise 90 87 */ 91 bool ShellCommandClass::getCommandListOfAlias(std::list<std::string> *stringList)92 { 93 if ( stringList == NULL ||ShellCommandClass::aliasList == NULL)88 bool ShellCommandClass::getCommandListOfAlias(std::list<std::string>& stringList) 89 { 90 if (ShellCommandClass::aliasList == NULL) 94 91 return false; 95 92 96 93 std::list<ShellCommandAlias*>::iterator alias; 97 94 for (alias = ShellCommandClass::aliasList->begin(); alias != ShellCommandClass::aliasList->end(); alias++) 98 stringList ->push_back((*alias)->getName());95 stringList.push_back((*alias)->getName()); 99 96 return true; 100 97 } -
trunk/src/lib/shell/shell_command_class.h
r7374 r7386 25 25 /** @returns the CommandClassList */ 26 26 static const std::list<ShellCommandClass*>* getCommandClassList() { return ShellCommandClass::commandClassList; }; 27 static bool getCommandListOfClass(const std::string& className, std::list<std::string>* stringList); 28 static bool getCommandListOfAlias(std::list<std::string>* aliasList); 27 28 static bool getCommandListOfClass(const std::string& className, std::list<std::string>& stringList); 29 static bool getCommandListOfAlias(std::list<std::string>& aliasList); 29 30 30 31 static ShellCommandClass* getCommandClass(const std::string& className); -
trunk/src/lib/shell/shell_completion.cc
r7374 r7386 170 170 { 171 171 std::list<std::string> fktList; 172 ShellCommandClass::getCommandListOfClass(className, &fktList);172 ShellCommandClass::getCommandListOfClass(className, fktList); 173 173 //printf("%s\n", boList->firstElement()->getName()); 174 174 if (!this->addToCompleteList(fktList, functionBegin, FunctionCompletion)) … … 185 185 { 186 186 std::list<std::string> aliasList; 187 ShellCommandClass::getCommandListOfAlias( &aliasList);187 ShellCommandClass::getCommandListOfAlias(aliasList); 188 188 //printf("%s\n", boList->firstElement()->getName()); 189 189 if (!this->addToCompleteList(aliasList, aliasBegin, AliasCompletion)) -
trunk/src/lib/shell/shell_completion_plugin.h
r7377 r7386 59 59 std::string _subDir; 60 60 StartDirectory _startDir; 61 62 61 }; 63 62 -
trunk/src/lib/sound/sound_source.cc
r7326 r7386 139 139 if (!this->retrieveSource()) 140 140 { 141 PRINTF( 2)("No more Free sources (You might consider raising the Source-Count).\n");141 PRINTF(3)("No more Free sources (You might consider raising the Source-Count).\n"); 142 142 return; 143 143 }
Note: See TracChangeset
for help on using the changeset viewer.