Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Apr 26, 2006, 11:39:51 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: new and improved ShellCommandAlias

File:
1 edited

Legend:

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

    r7388 r7389  
    101101    /** @returns the Command, this Alias is asociated with */
    102102    ShellCommand* getCommand() const { return this->command; };
     103    static bool getCommandListOfAlias(std::list<std::string>& stringList);
    103104
    104105  private:
    105106    /** @param aliasName the name of the Alias @param command the Command, to associate this alias with */
    106     ShellCommandAlias(const std::string& aliasName, ShellCommand* command) { this->aliasName = aliasName; this->command = command; };
    107 
     107    ShellCommandAlias(const std::string& aliasName, ShellCommand* command);
     108    ~ShellCommandAlias();
    108109  private:
    109110    std::string     aliasName;       //!< the name of the Alias
    110111    ShellCommand*   command;         //!< a pointer to the command, this alias executes.
     112
     113    static std::vector<ShellCommandAlias*> aliasList; //!< A list of Aliases to A Commands.
    111114  };
    112115
Note: See TracChangeset for help on using the changeset viewer.