Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7203 in orxonox.OLD for branches/std/src/lib/util/executor


Ignore:
Timestamp:
Mar 9, 2006, 5:28:10 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: compiles again, BUT well…. i do not expect it to run anymore

Location:
branches/std/src/lib/util/executor
Files:
3 edited

Legend:

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

    r7201 r7203  
    105105  value[4] = &value4;
    106106
    107   printf("%s ::: paramCount: %d\n", this->getName(), this->paramCount);
    108107  for (unsigned int i = 0; i < this->paramCount; i++)
    109108  {
    110109    if (*value[i] != MT_NULL)
    111110    {
    112       printf("1:::: %d : %s \n",i, MultiType::MultiTypeToString(this->defaultValue[i].getType()));
    113 
    114       this->defaultValue[i].debug();
    115       //this->defaultValue[i].setValueOf(*value[i]);
    116       //printf("2::::%s\n", MultiType::MultiTypeToString(this->defaultValue[i].getType()));
    117       //this->defaultValue[i].debug();
    118     //this->defaultValue[i].setValueOf(*value[i]);
     111      this->defaultValue[i].setValueOf(*value[i]);
    119112    }
    120113  }
  • branches/std/src/lib/util/executor/executor.h

    r7200 r7203  
    8787#define   l_FLOAT_DEFGRAB(i)        this->defaultValue[i].getFloat()
    8888//! where to chek for default STRING values
     89#define   l_STRING_DEFGRAB(i)       this->defaultValue[i].getString()
     90//! where to chek for default CSTRING values
    8991#define   l_CSTRING_DEFGRAB(i)      this->defaultValue[i].getCString()
    9092
     
    268270    virtual void execute (BaseObject* object, const void* parameters = NULL)
    269271    {
    270       SubString sub((const char*) parameters, " \n\t,", '\\');
    271       printf("%s :: %s\n", this->getName(), (const char*) parameters);
     272      SubString sub(((const std::string*) parameters)->c_str(), " \n\t,", '\\');
     273      printf("%s :: %s\n", this->getName(), ((const std::string*) parameters)->c_str());
    272274//! FUNCTOR_LIST is the List of Executive Functions
    273275#define FUNCTOR_LIST(x) ExecutorExecute ## x
  • branches/std/src/lib/util/executor/functor_list.h

    r7199 r7203  
    7575
    7676#define l_CSTRING_TYPE     const char*          //!< The type of a STRING
    77 #define l_CSTRING_FUNC     isString             //!< The function to parse a STRING
    78 #define l_CSTRING_NAME     "string"             //!< The name of a STRING
     77#define l_CSTRING_FUNC     isCString            //!< The function to parse a STRING
     78#define l_CSTRING_NAME     "cstring"            //!< The name of a STRING
    7979#define l_CSTRING_PARAM    MT_STRING            //!< the type of the parameter STRING
    8080#define l_CSTRING_DEFAULT  ""                   //!< a default Value for an STRING
     
    9898
    9999  FUNCTOR_LIST(0)();
     100  //! makes functions with one cstring
     101  FUNCTOR_LIST(1)(l_CSTRING);
     102  //! makes functions with two cstrings
     103  FUNCTOR_LIST(2)(l_CSTRING, l_CSTRING);
     104  //! makes functions with three cstrings
     105  FUNCTOR_LIST(3)(l_CSTRING, l_CSTRING, l_CSTRING);
     106  //! makes functions with four cstrings
     107  FUNCTOR_LIST(4)(l_CSTRING, l_CSTRING, l_CSTRING, l_CSTRING);
     108
    100109  //! makes functions with one string
    101   FUNCTOR_LIST(1)(l_CSTRING);
     110  FUNCTOR_LIST(1)(l_STRING);
    102111  //! makes functions with two strings
    103   FUNCTOR_LIST(2)(l_CSTRING, l_CSTRING);
     112  FUNCTOR_LIST(2)(l_STRING, l_STRING);
    104113  //! makes functions with three strings
    105   FUNCTOR_LIST(3)(l_CSTRING, l_CSTRING, l_CSTRING);
     114  FUNCTOR_LIST(3)(l_STRING, l_STRING, l_STRING);
    106115  //! makes functions with four strings
    107   FUNCTOR_LIST(4)(l_CSTRING, l_CSTRING, l_CSTRING, l_CSTRING);
     116  FUNCTOR_LIST(4)(l_STRING, l_STRING, l_STRING, l_STRING);
     117
    108118
    109119  //! makes functions with one bool
Note: See TracChangeset for help on using the changeset viewer.