Changeset 7411 in orxonox.OLD for trunk/src/lib/shell/shell_command_class.cc
- Timestamp:
- Apr 27, 2006, 11:23:55 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_command_class.cc
r7408 r7411 114 114 std::vector<ShellCommandClass*>::const_iterator classIT; 115 115 for (classIT = ShellCommandClass::commandClassList.begin(); classIT != ShellCommandClass::commandClassList.end(); classIT++) 116 {117 116 if (className == (*classIT)->className) 118 {119 if ((*classIT)->classID == CL_NULL)120 (*classIT)->classID = ClassList::StringToID(className);121 122 117 return (*classIT); 123 }124 }125 118 return NULL; 126 119 } … … 131 124 * @returns the CommandClass if found, NULL otherwise 132 125 */ 133 /*bool ShellCommandClass::exists(const std::string& className)126 bool ShellCommandClass::exists(const std::string& className) 134 127 { 128 return (ShellCommandClass::getCommandClass(className) != NULL); 129 } 135 130 136 }*/ 131 ClassID ShellCommandClass::getClassID() 132 { 133 if (this->classID == CL_NULL) 134 this->classID = ClassList::StringToID(this->className); 135 return this->classID; 136 } 137 137 138 138 139 /**
Note: See TracChangeset
for help on using the changeset viewer.