Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Oct 8, 2005, 11:07:21 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: executing static commands work

File:
1 edited

Legend:

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

    r5328 r5329  
    3939#define SHELL_COMMAND(command, class, function) \
    4040        ShellCommandBase* shell_command_##class##_##command = ShellCommand<class>::registerCommand(#command, #class, &class::function)
     41/**
     42 * an easy to use Macro to create a Command
     43 * @param command the name of the command (without "" around the string)
     44 * @param class the name of the class to apply this command to (without the "" around the string)
     45 * @param function the function to call
     46 *
     47 * MEANING:
     48 *  ShellCommandBase* someUniqueVarName =
     49 *       ShellCommand<ClassName>::registerCommand("commandNameInShell", "ClassName", &ClassName::FunctionToCall);
     50 *
     51 * In the Shell you would call this Command using:
     52 * $ ClassName [ObjectName] commandNameInShell [parameters]
     53 */
     54#define SHELL_COMMAND_STATIC(command, class, function) \
     55                         ShellCommandBase* shell_command_##class##_##command = ShellCommandStatic<class>::registerCommand(#command, #class, function)
    4156
    4257
     
    110125    static bool isRegistered(const char* commandName, const char* className, unsigned int paramCount, ...);
    111126    static const char* paramToString(long parameter);
    112 
    113     void debugDyn();
    114127
    115128  private:
Note: See TracChangeset for help on using the changeset viewer.