Changeset 5162 in orxonox.OLD for trunk/src/lib/shell
- Timestamp:
- Sep 5, 2005, 10:29:03 PM (19 years ago)
- Location:
- trunk/src/lib/shell
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell.cc
r5161 r5162 32 32 using namespace std; 33 33 34 S hellCommandBase* tmp = ShellCommand<Shell>::registerCommand("clear", "Shell", &Shell::clear);34 SHELL_COMMAND(clear, Shell, clear); 35 35 36 36 /** … … 76 76 for (int i = 1; i < SDLK_LAST; i++) 77 77 evh->subscribe(this, ES_SHELL, i); 78 79 //void ShellCommand<T>::registerCommand(const char* commandName, ClassID classID, T* object, void* functionPointer, unsigned int paramCount, ...)80 81 82 /* ShellCommand<Shell>::registerCommand("testS", CL_SHELL, &Shell::testS);83 ShellCommand<Shell>::registerCommand("testI", CL_SHELL, &Shell::testI, 5);84 ShellCommand<Shell>::registerCommand("testB", CL_SHELL, &Shell::testB);85 ShellCommand<Shell>::registerCommand("testF", CL_SHELL, &Shell::testF);86 ShellCommand<Shell>::registerCommand("testSF", CL_SHELL, &Shell::testSF);*/87 78 } 88 79 -
trunk/src/lib/shell/shell_command.h
r5161 r5162 21 21 // FORWARD DECLARATION 22 22 template<class T> class tList; 23 24 #define SHELL_COMMAND(command, class, function) \ 25 ShellCommand<class>* shell_command_##class##_##command = ShellCommand<class>::registerCommand(#command, #class, &class::function) 23 26 24 27
Note: See TracChangeset
for help on using the changeset viewer.