Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5690 in orxonox.OLD for trunk/src/lib/util/executor/executor.h


Ignore:
Timestamp:
Nov 22, 2005, 12:15:36 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: parameters of Executor are const void* instead of const char*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/util/executor/executor.h

    r5656 r5690  
    4242
    4343    /** 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;
    4545
    4646    /** @returns the Type of this Function (either static or objective) */
     
    185185#define ExecutorExecute1(t1) \
    186186   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)))
    188188
    189189//! execute-macro for functions with two parameters
     
    261261    } fp;
    262262
    263     virtual void execute (BaseObject* object, const char* parameters)
     263    virtual void execute (BaseObject* object, const void* parameters)
    264264    {
    265       SubString sub(parameters, " \n\t,", '\\');
     265      SubString sub((const char*) parameters, " \n\t,", '\\');
    266266//! FUNCTOR_LIST is the List of Executive Functions
    267267#define FUNCTOR_LIST(x) ExecutorExecute ## x
     
    323323
    324324
    325     virtual void execute (BaseObject* object, const char* parameters)
     325    virtual void execute (BaseObject* object, const void* parameters)
    326326    {
    327   SubString sub(parameters, " \n\t,");
     327  SubString sub((const char*)parameters, " \n\t,");
    328328//! FUNCTOR_LIST is the List of Executive Functions
    329329#define FUNCTOR_LIST(x) ExecutorExecute ## x
Note: See TracChangeset for help on using the changeset viewer.