Changeset 5690 in orxonox.OLD for trunk/src/lib/util/executor
- Timestamp:
- Nov 22, 2005, 12:15:36 AM (19 years ago)
- Location:
- trunk/src/lib/util/executor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/executor/executor.h
r5656 r5690 42 42 43 43 /** executes a Command @param object the object to apply this to @param parameters the parameters the command takes */ 44 virtual void execute (BaseObject* object, const char* parameters) = 0;44 virtual void execute (BaseObject* object, const void* parameters) = 0; 45 45 46 46 /** @returns the Type of this Function (either static or objective) */ … … 185 185 #define ExecutorExecute1(t1) \ 186 186 else if (this->paramCount == 1 && this->defaultValue[0].getType() == t1##_PARAM) \ 187 EXECUTOREXECUTER(_1_##t1)(t1##_FUNC( parameters, t1##_DEFGRAB(0)))187 EXECUTOREXECUTER(_1_##t1)(t1##_FUNC((const char*)parameters, t1##_DEFGRAB(0))) 188 188 189 189 //! execute-macro for functions with two parameters … … 261 261 } fp; 262 262 263 virtual void execute (BaseObject* object, const char* parameters)263 virtual void execute (BaseObject* object, const void* parameters) 264 264 { 265 SubString sub( parameters, " \n\t,", '\\');265 SubString sub((const char*) parameters, " \n\t,", '\\'); 266 266 //! FUNCTOR_LIST is the List of Executive Functions 267 267 #define FUNCTOR_LIST(x) ExecutorExecute ## x … … 323 323 324 324 325 virtual void execute (BaseObject* object, const char* parameters)325 virtual void execute (BaseObject* object, const void* parameters) 326 326 { 327 SubString sub( parameters, " \n\t,");327 SubString sub((const char*)parameters, " \n\t,"); 328 328 //! FUNCTOR_LIST is the List of Executive Functions 329 329 #define FUNCTOR_LIST(x) ExecutorExecute ## x -
trunk/src/lib/util/executor/executor_specials.h
r5659 r5690 59 59 * @param loadString ignored in this case 60 60 */ 61 virtual void execute(BaseObject* object, const char* loadString)61 virtual void execute(BaseObject* object, const void* loadString) 62 62 { 63 63 if (object != NULL && this->element != NULL)
Note: See TracChangeset
for help on using the changeset viewer.