Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

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

Location:
trunk/src/lib/util/executor
Files:
2 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
  • trunk/src/lib/util/executor/executor_specials.h

    r5659 r5690  
    5959     * @param loadString ignored in this case
    6060     */
    61     virtual void execute(BaseObject* object, const char* loadString)
     61    virtual void execute(BaseObject* object, const void* loadString)
    6262    {
    6363      if (object != NULL && this->element != NULL)
Note: See TracChangeset for help on using the changeset viewer.