Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5779 in orxonox.OLD for trunk/src/lib/shell/shell_command_class.h


Ignore:
Timestamp:
Nov 26, 2005, 2:20:58 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: ClassList is now in std::list style
ShellCommand is now in std::list style

File:
1 edited

Legend:

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

    r5639 r5779  
    88
    99#include "base_object.h"
     10#include <list>
    1011
    1112
     
    2627  public:
    2728    /** @returns the CommandClassList */
    28     static const tList<ShellCommandClass>* getCommandClassList() { return ShellCommandClass::commandClassList; };
    29     static bool getCommandListOfClass(const char* className, tList<const char>* stringList);
    30     static bool getCommandListOfAlias(tList<const char>* aliasList);
     29    static const std::list<ShellCommandClass*>* getCommandClassList() { return ShellCommandClass::commandClassList; };
     30    static bool getCommandListOfClass(const char* className, std::list<const char*>* stringList);
     31    static bool getCommandListOfAlias(std::list<const char*>* aliasList);
    3132
    3233    static ShellCommandClass* getCommandClass(const char* className);
     
    4344
    4445  private:
    45     const char*                      className;                 //!< The Name of the Class. This should match the ClassName of the Commands Class.
    46     long                             classID;                   //!< The classID of this Class
    47     tList<ShellCommand>*             commandList;               //!< A list of Commands from this Class
    48     static tList<ShellCommandClass>* commandClassList;          //!< A list of Classes
    49     static tList<ShellCommandAlias>* aliasList;                 //!< An Alias to A Command. (only for classes with one Instance)
     46    const char*                            className;                 //!< The Name of the Class. This should match the ClassName of the Commands Class.
     47    long                                   classID;                   //!< The classID of this Class
     48    std::list<ShellCommand*>               commandList;               //!< A list of Commands from this Class
     49    static std::list<ShellCommandClass*>* commandClassList;          //!< A list of Classes
     50    static std::list<ShellCommandAlias*>* aliasList;                 //!< An Alias to A Command. (only for classes with one Instance)
    5051};
    5152
Note: See TracChangeset for help on using the changeset viewer.