Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Apr 27, 2006, 8:42:16 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: cloning the Completors

File:
1 edited

Legend:

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

    r7403 r7407  
    1010
    1111#include "executor/executor.h"
    12 #include <stdarg.h>
     12#include "shell_completion_plugin.h"
    1313
    1414#define     SHELL_COMMAND_MAX_SIZE      //!< The maximum size of a Shell Command
    15 
    16 
    1715
    1816namespace OrxShell
     
    2119  class ShellCommandClass;
    2220  class ShellCommandAlias;
     21  class CompletorPlugin;
    2322
    2423  /**
     
    7574    static bool exists(const std::string& commandName, const std::string& className);
    7675
     76    unsigned int getParamCount() const { return this->executor->getParamCount(); }
     77    const CompletorPlugin* const getCompletorPlugin(unsigned int i) const { return this->completors[i]; };
     78
    7779    static void debug();
    7880
     
    8890
    8991    std::string                      description;           //!< A description for this commnand. (initially ""). Assigned with (create)->describe("blablabla");
     92    std::vector<CompletorPlugin*>    completors;            //!< Completors for the Parameters
    9093    Executor*                        executor;              //!< The Executor, that really executes the Function.
    9194  };
Note: See TracChangeset for help on using the changeset viewer.