Changeset 5148 in orxonox.OLD for trunk/src/util/shell_command.h
- Timestamp:
- Aug 27, 2005, 12:17:50 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/shell_command.h
r5147 r5148 45 45 } 46 46 47 47 // CONSTRUCTORS 48 48 #define ShellCommandConstructor0 \ 49 49 void (T::*functionPointer_0)(); \ … … 70 70 #define ShellCommandExecute1(t1) \ 71 71 else if (this->paramCount == 1 && this->parameters[0] == t1##_PARAM) \ 72 72 (dynamic_cast<T*>(object)->*functionPointer_1_##t1)(t1##_FUNC(parameters, 0)) 73 73 74 74 … … 90 90 91 91 static bool isRegistered(const char* commandName, ClassID classID, unsigned int paramCount, ...); 92 static const char* paramToString(long parameter); 92 93 94 void debug(); 93 95 private: 94 96 virtual void executeCommand (BaseObject* object, const char* parameters) = NULL; … … 97 99 void* functionPointer; //!< The pointeer to the function of the Class (or static pointer if ClassID == CL_NULL ) 98 100 unsigned int paramCount; //!< the count of parameters 99 long*parameters; //!< Parameters101 unsigned int* parameters; //!< Parameters 100 102 bool isSingleton; //!< if the Class is Singleton @todo autocheck 101 103 … … 143 145 #define FUNCTOR_LIST(x) ShellCommandRegister ## x 144 146 //#include "functor_list.h" 145 FUNCTOR_LIST(0);146 FUNCTOR_LIST(1)(l_INT);147 FUNCTOR_LIST(1)(l_STRING);147 FUNCTOR_LIST(0); 148 FUNCTOR_LIST(1)(l_INT); 149 FUNCTOR_LIST(1)(l_STRING); 148 150 #undef FUNCTOR_LIST 149 151 … … 160 162 { 161 163 if (parameters != NULL) 162 SubString params(parameters, ',');164 //SubString params(parameters, ','); 163 165 #define FUNCTOR_LIST(x) ShellCommandExecute ## x 164 166 //#include "functor_list.h" 165 167 FUNCTOR_LIST(0); 166 168 FUNCTOR_LIST(1)(l_INT); 167 FUNCTOR_LIST(1)(l_STRING);169 //FUNCTOR_LIST(1)(l_STRING); 168 170 #undef FUNCTOR_LIST 169 171 }
Note: See TracChangeset
for help on using the changeset viewer.