Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5197 in orxonox.OLD for trunk/src/lib/shell/shell_command.cc


Ignore:
Timestamp:
Sep 18, 2005, 2:57:20 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: doxygen-tags

File:
1 edited

Legend:

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

    r5196 r5197  
    6161}
    6262
     63/**
     64 * collects the Commands registered to some class.
     65 * @param className the name of the Class to collect the Commands from.
     66 * @param stringList a List to paste the Commands into.
     67 * @returns true on success, false otherwise
     68 */
    6369bool ShellCommandClass::getCommandListOfClass(const char* className, tList<const char>* stringList)
    6470{
     
    8894}
    8995
     96/**
     97 * collects the Aliases registered to the ShellCommands
     98 * @param stringList a List to paste the Aliases into.
     99 * @returns true on success, false otherwise
     100 */
    90101bool ShellCommandClass::getCommandListOfAlias(tList<const char>* stringList)
    91102{
     
    104115}
    105116
    106 
    107117/**
    108118 * unregisters all Commands that exist
     
    127137  if (ShellCommandClass::aliasList != NULL)
    128138  {
    129    tIterator<ShellCommandAlias>* itAL = ShellCommandClass::aliasList->getIterator();
    130    ShellCommandAlias* elemAL = itAL->firstElement();
    131    while(elemAL != NULL)
    132    {
    133      delete elemAL;
    134      elemAL = itAL->nextElement();
    135    }
    136    delete itAL;
    137    delete ShellCommandClass::aliasList;
    138    ShellCommandClass::aliasList = NULL;
    139   }
    140 }
    141 
     139    tIterator<ShellCommandAlias>* itAL = ShellCommandClass::aliasList->getIterator();
     140    ShellCommandAlias* elemAL = itAL->firstElement();
     141    while(elemAL != NULL)
     142    {
     143      delete elemAL;
     144      elemAL = itAL->nextElement();
     145    }
     146    delete itAL;
     147    delete ShellCommandClass::aliasList;
     148    ShellCommandClass::aliasList = NULL;
     149  }
     150}
     151
     152/**
     153 * checks if a Class is already registered to the Commands' class-stack
     154 * @param className the Name of the Class to check for
     155 * @returns the CommandClass if found, NULL otherwise
     156 */
    142157const ShellCommandClass* ShellCommandClass::isRegistered(const char* className)
    143158{
     
    468483}
    469484
     485/**
     486 * adds an Alias to this Command
     487 * @param alias the name of the Alias to set
     488 * @returns itself
     489 */
    470490ShellCommandBase* ShellCommandBase::setAlias(const char* alias)
    471491{
Note: See TracChangeset for help on using the changeset viewer.