Changeset 7474 in orxonox.OLD for trunk/src/lib/util/executor
- Timestamp:
- May 2, 2006, 6:24:43 PM (19 years ago)
- Location:
- trunk/src/lib/util/executor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/executor/executor.h
r7419 r7474 52 52 // EXECUTE 53 53 /** executes a Command @param object the object to apply this to @param parameters the parameters the command takes */ 54 virtual void operator()(BaseObject* object, const std::string& parameters = "") const = 0;54 virtual void operator()(BaseObject* object, const SubString& sub = SubString()) const = 0; 55 55 /** executes a Command @param object the object to apply this to @param parameters the parameters the command takes @brief here for your convenience*/ 56 56 void execute (BaseObject* object, const std::string& parameters = "") const { (*this)(object, parameters); }; … … 256 256 } fp; 257 257 258 virtual void operator()(BaseObject* object, const std::string& parameters = "") const258 virtual void operator()(BaseObject* object, const SubString& sub = SubString()) const 259 259 { 260 SubString sub;261 sub.split(parameters, " \n\t,", '\\');262 260 //! FUNCTOR_LIST is the List of Executive Functions 263 261 #define FUNCTOR_LIST(x) ExecutorExecute ## x … … 319 317 320 318 321 virtual void operator()(BaseObject* object, const std::string& parameters = "") const319 virtual void operator()(BaseObject* object, const SubString& sub = SubString()) const 322 320 { 323 SubString sub;324 sub.split(parameters, " \n\t,", '\\');325 321 //! FUNCTOR_LIST is the List of Executive Functions 326 322 #define FUNCTOR_LIST(x) ExecutorExecute ## x -
trunk/src/lib/util/executor/executor_specials.h
r7419 r7474 60 60 * @param loadString ignored in this case 61 61 */ 62 virtual void operator()(BaseObject* object, const std::string& = "") const62 virtual void operator()(BaseObject* object, const SubString& = SubString()) const 63 63 { 64 64 if (object != NULL && this->element != NULL)
Note: See TracChangeset
for help on using the changeset viewer.