Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5195 in orxonox.OLD for trunk/src/lib/shell/shell_command.h


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

orxonox/trunk: alias-completion works too now :)

File:
1 edited

Legend:

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

    r5190 r5195  
    5252  public:
    5353    static const tList<ShellCommandClass>* getCommandClassList() { return ShellCommandClass::commandClassList; };
    54     static bool ShellCommandClass::getCommandListOfClass(const char* className, tList<const char>* stringList);
     54    static bool getCommandListOfClass(const char* className, tList<const char>* stringList);
     55    static bool getCommandListOfAlias(tList<const char>* aliasList);
    5556
    5657    static ShellCommandClass* getCommandClass(const char* className);
     
    6970    tList<ShellCommandBase>*         commandList;               //!< A list of Commands from this Class
    7071    static tList<ShellCommandClass>* commandClassList;          //!< A list of Classes
    71     static tList<ShellCommandAlias>* aliasesList;               //!< An Alias to A Command. (only for classes with one Instance)
     72    static tList<ShellCommandAlias>* aliasList;                 //!< An Alias to A Command. (only for classes with one Instance)
    7273};
    7374
     
    320321  public:
    321322    ShellCommandAlias(const char* aliasName, ShellCommandBase* command) { this->aliasName = aliasName; this->command = command; };
     323
     324    const char* getName() const { return this->aliasName; };
     325    ShellCommandBase* getCommand() const { return this->command; };
    322326  private:
    323327    const char*         aliasName;
Note: See TracChangeset for help on using the changeset viewer.