Changeset 5329 in orxonox.OLD for trunk/src/lib/shell/shell_command.h
- Timestamp:
- Oct 8, 2005, 11:07:21 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_command.h
r5328 r5329 39 39 #define SHELL_COMMAND(command, class, function) \ 40 40 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) 41 56 42 57 … … 110 125 static bool isRegistered(const char* commandName, const char* className, unsigned int paramCount, ...); 111 126 static const char* paramToString(long parameter); 112 113 void debugDyn();114 127 115 128 private:
Note: See TracChangeset
for help on using the changeset viewer.