Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7411 in orxonox.OLD for trunk/src/lib/shell/shell_command_class.cc


Ignore:
Timestamp:
Apr 27, 2006, 11:23:55 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: some command-stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell_command_class.cc

    r7408 r7411  
    114114    std::vector<ShellCommandClass*>::const_iterator classIT;
    115115    for (classIT = ShellCommandClass::commandClassList.begin(); classIT != ShellCommandClass::commandClassList.end(); classIT++)
    116     {
    117116      if (className == (*classIT)->className)
    118       {
    119         if ((*classIT)->classID == CL_NULL)
    120           (*classIT)->classID = ClassList::StringToID(className);
    121 
    122117        return (*classIT);
    123       }
    124     }
    125118    return NULL;
    126119  }
     
    131124   * @returns the CommandClass if found, NULL otherwise
    132125   */
    133 /*  bool ShellCommandClass::exists(const std::string& className)
     126  bool ShellCommandClass::exists(const std::string& className)
    134127  {
     128    return (ShellCommandClass::getCommandClass(className) != NULL);
     129  }
    135130
    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
    137138
    138139  /**
Note: See TracChangeset for help on using the changeset viewer.