Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

orxonox/trunk: ShellCommandAlias should really be completed now

File:
1 edited

Legend:

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

    r5195 r5196  
    8585
    8686    /** @returns the CommandList of the Shell */
    87 
    8887    static void unregisterCommand(const char* commandName, const char* className);
    8988
     
    114113  private:
    115114    ShellCommandClass*               shellClass;                           //!< A Pointer to the Shell-Class this Command belongs to.
     115    ShellCommandAlias*               alias;                                //!< An Alias for the Class.
    116116
    117117    const char*                      description;                          //!< A description for this commnand. (initially NULL). Assigned with (create)->describe("blablabla");
     
    319319class ShellCommandAlias
    320320{
     321  friend class ShellCommandBase;
    321322  public:
    322     ShellCommandAlias(const char* aliasName, ShellCommandBase* command) { this->aliasName = aliasName; this->command = command; };
    323 
    324323    const char* getName() const { return this->aliasName; };
    325324    ShellCommandBase* getCommand() const { return this->command; };
     325
     326  private:
     327    ShellCommandAlias(const char* aliasName, ShellCommandBase* command) { this->aliasName = aliasName; this->command = command; };
     328
    326329  private:
    327330    const char*         aliasName;
Note: See TracChangeset for help on using the changeset viewer.