Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Apr 27, 2006, 4:08:46 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: Aliases better

File:
1 edited

Legend:

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

    r7389 r7397  
    8585
    8686  private:
    87     ShellCommandClass*               shellClass;                           //!< A Pointer to the Shell-Class this Command belongs to.
    88     ShellCommandAlias*               alias;                                //!< An Alias for the Class.
     87    ShellCommandClass*               shellClass;            //!< A Pointer to the Shell-Class this Command belongs to.
     88    ShellCommandAlias*               alias;                 //!< An Alias for the Class.
    8989
    90     std::string                      description;                          //!< A description for this commnand. (initially ""). Assigned with (create)->describe("blablabla");
    91     Executor*                        executor;                             //!< The Executor, that really executes the Function.
     90    std::string                      description;           //!< A description for this commnand. (initially ""). Assigned with (create)->describe("blablabla");
     91    Executor*                        executor;              //!< The Executor, that really executes the Function.
    9292  };
    9393
     
    9595  class ShellCommandAlias
    9696  {
    97     friend class ShellCommand;
    9897  public:
     98    ShellCommandAlias(const std::string& aliasName, ShellCommand* command);
     99    ~ShellCommandAlias();
     100
    99101    /** @returns the Name of the Alias. */
    100102    const std::string& getName() const { return this->aliasName; };
     
    102104    ShellCommand* getCommand() const { return this->command; };
    103105    static bool getCommandListOfAlias(std::list<std::string>& stringList);
     106    static const std::vector<ShellCommandAlias*>& getAliases() { return ShellCommandAlias::aliasList; };
    104107
    105   private:
    106     /** @param aliasName the name of the Alias @param command the Command, to associate this alias with */
    107     ShellCommandAlias(const std::string& aliasName, ShellCommand* command);
    108     ~ShellCommandAlias();
    109108  private:
    110109    std::string     aliasName;       //!< the name of the Alias
Note: See TracChangeset for help on using the changeset viewer.