Changeset 7203 in orxonox.OLD for branches/std/src/lib/util/executor
- Timestamp:
- Mar 9, 2006, 5:28:10 PM (19 years ago)
- Location:
- branches/std/src/lib/util/executor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/lib/util/executor/executor.cc
r7201 r7203 105 105 value[4] = &value4; 106 106 107 printf("%s ::: paramCount: %d\n", this->getName(), this->paramCount);108 107 for (unsigned int i = 0; i < this->paramCount; i++) 109 108 { 110 109 if (*value[i] != MT_NULL) 111 110 { 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]); 119 112 } 120 113 } -
branches/std/src/lib/util/executor/executor.h
r7200 r7203 87 87 #define l_FLOAT_DEFGRAB(i) this->defaultValue[i].getFloat() 88 88 //! 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 89 91 #define l_CSTRING_DEFGRAB(i) this->defaultValue[i].getCString() 90 92 … … 268 270 virtual void execute (BaseObject* object, const void* parameters = NULL) 269 271 { 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()); 272 274 //! FUNCTOR_LIST is the List of Executive Functions 273 275 #define FUNCTOR_LIST(x) ExecutorExecute ## x -
branches/std/src/lib/util/executor/functor_list.h
r7199 r7203 75 75 76 76 #define l_CSTRING_TYPE const char* //!< The type of a STRING 77 #define l_CSTRING_FUNC is String//!< The function to parse a STRING78 #define l_CSTRING_NAME " string"//!< The name of a STRING77 #define l_CSTRING_FUNC isCString //!< The function to parse a STRING 78 #define l_CSTRING_NAME "cstring" //!< The name of a STRING 79 79 #define l_CSTRING_PARAM MT_STRING //!< the type of the parameter STRING 80 80 #define l_CSTRING_DEFAULT "" //!< a default Value for an STRING … … 98 98 99 99 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 100 109 //! makes functions with one string 101 FUNCTOR_LIST(1)(l_ CSTRING);110 FUNCTOR_LIST(1)(l_STRING); 102 111 //! makes functions with two strings 103 FUNCTOR_LIST(2)(l_ CSTRING, l_CSTRING);112 FUNCTOR_LIST(2)(l_STRING, l_STRING); 104 113 //! 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); 106 115 //! 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 108 118 109 119 //! makes functions with one bool
Note: See TracChangeset
for help on using the changeset viewer.