Changeset 5137 in orxonox.OLD for trunk/src/util/shell_command.h
- Timestamp:
- Aug 26, 2005, 1:41:54 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/shell_command.h
r5136 r5137 62 62 static bool isRegistered(const char* commandName, ClassID classID, unsigned int paramCount, ...); 63 63 64 65 64 protected: 66 65 void* functionPointer; //!< The pointeer to the function of the Class (or static pointer if ClassID == CL_NULL ) … … 103 102 static void unregisterCommand(const char* commandNaame, ClassID classID); 104 103 105 static void registerCommand(const char* commandName, ClassID classID, void (T::*functionPointer)() , bool isSingleton = false)104 static void registerCommand(const char* commandName, ClassID classID, void (T::*functionPointer)()) 106 105 { 107 106 if (isRegistered(commandName, classID, 0)== true) … … 109 108 else 110 109 { 111 if (isSingleton == false) 110 if (classID & CL_MASK_SINGLETON == CL_MASK_SINGLETON) 111 new ShellCommandSingleton<T>(commandName, classID, functionPointer); 112 else 112 113 new ShellCommand<T>(commandName, classID, functionPointer); 113 else114 new ShellCommandSingleton<T>(commandName, classID, functionPointer);115 114 } 116 115 }
Note: See TracChangeset
for help on using the changeset viewer.