Changeset 7419 in orxonox.OLD for trunk/src/lib/util/executor
- Timestamp:
- Apr 28, 2006, 11:47:44 AM (19 years ago)
- Location:
- trunk/src/lib/util/executor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/executor/executor.h
r7407 r7419 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 = "") = 0;54 virtual void operator()(BaseObject* object, const std::string& parameters = "") 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 void execute (BaseObject* object, const std::string& parameters = "") { (*this)(object, parameters); };56 void execute (BaseObject* object, const std::string& parameters = "") const { (*this)(object, parameters); }; 57 57 58 58 // RETRIEVE INFORMATION … … 256 256 } fp; 257 257 258 virtual void operator()(BaseObject* object, const std::string& parameters = "") 258 virtual void operator()(BaseObject* object, const std::string& parameters = "") const 259 259 { 260 260 SubString sub; … … 319 319 320 320 321 virtual void operator()(BaseObject* object, const std::string& parameters = "") 321 virtual void operator()(BaseObject* object, const std::string& parameters = "") const 322 322 { 323 323 SubString sub; -
trunk/src/lib/util/executor/executor_specials.h
r7331 r7419 60 60 * @param loadString ignored in this case 61 61 */ 62 virtual void operator()(BaseObject* object, const std::string& = "") 62 virtual void operator()(BaseObject* object, const std::string& = "") const 63 63 { 64 64 if (object != NULL && this->element != NULL)
Note: See TracChangeset
for help on using the changeset viewer.