Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 10, 2006, 4:52:21 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: new SubString class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/std/src/lib/util/executor/executor.h

    r7210 r7211  
    1616//! an enumerator for the definition of the Type.
    1717typedef enum {
    18   Executor_Objective         = 0x00000001,
    19   Executor_Static            = 0x00000002,
    20 
    21   Executor_NoLoadString      = 0x00000010,
     18  Executor_Objective         = 1,
     19  Executor_Static            = 2,
     20
     21  Executor_NoLoadString      = 8,
    2222} Executor_Type;
    2323
     
    192192#define ExecutorExecute1(t1) \
    193193   else if (this->paramCount == 1 && this->defaultValue[0] == t1##_PARAM) \
    194     EXECUTOREXECUTER(_1_##t1)(t1##_FUNC((const char*)parameters, t1##_DEFGRAB(0)))
     194    EXECUTOREXECUTER(_1_##t1)(t1##_FUNC(sub.getString(0), t1##_DEFGRAB(0)))
    195195
    196196//! execute-macro for functions with two parameters
     
    270270    virtual void execute (BaseObject* object, const void* parameters = NULL)
    271271    {
    272       SubString sub(((const std::string*) parameters)->c_str(), " \n\t,", '\\');
     272      SubString sub((const char*)parameters, " \n\t", '\\');
    273273//! FUNCTOR_LIST is the List of Executive Functions
    274274#define FUNCTOR_LIST(x) ExecutorExecute ## x
     
    332332    virtual void execute (BaseObject* object, const void* parameters = NULL)
    333333    {
    334   SubString sub((const char*)parameters, " \n\t,");
     334      SubString sub(((const char*)parameters), " \n\t,");
    335335//! FUNCTOR_LIST is the List of Executive Functions
    336336#define FUNCTOR_LIST(x) ExecutorExecute ## x
Note: See TracChangeset for help on using the changeset viewer.