Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7474 in orxonox.OLD for trunk/src/lib/util/executor/executor.h


Ignore:
Timestamp:
May 2, 2006, 6:24:43 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: SubString::split algorithm revisited: now it Splits Strings where Delimitters are, but it ereases the Neighbours of those delimiters, if you want it
also there is now a way to have empty Entries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/util/executor/executor.h

    r7419 r7474  
    5252    // EXECUTE
    5353    /** 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;
    5555    /** executes a Command @param object the object to apply this to @param parameters the parameters the command takes @brief here for your convenience*/
    5656    void execute (BaseObject* object, const std::string& parameters = "") const { (*this)(object, parameters); };
     
    256256    } fp;
    257257
    258     virtual void operator()(BaseObject* object, const std::string& parameters = "") const
     258    virtual void operator()(BaseObject* object, const SubString& sub = SubString()) const
    259259    {
    260       SubString sub;
    261       sub.split(parameters, " \n\t,", '\\');
    262260//! FUNCTOR_LIST is the List of Executive Functions
    263261#define FUNCTOR_LIST(x) ExecutorExecute ## x
     
    319317
    320318
    321     virtual void operator()(BaseObject* object, const std::string& parameters = "") const
     319    virtual void operator()(BaseObject* object, const SubString& sub = SubString()) const
    322320    {
    323       SubString sub;
    324       sub.split(parameters, " \n\t,", '\\');
    325321//! FUNCTOR_LIST is the List of Executive Functions
    326322#define FUNCTOR_LIST(x) ExecutorExecute ## x
Note: See TracChangeset for help on using the changeset viewer.