Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7477 in orxonox.OLD for trunk/src/lib/util


Ignore:
Timestamp:
May 2, 2006, 8:42:14 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: new SubString variant

Location:
trunk/src/lib/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/util/substring.cc

    r7474 r7477  
    9090}
    9191
     92/**
     93 * @brief creates a Substring from a count and values set.
     94 * @param argc: the Arguments Count.
     95 * @param argv: Argument Values.
     96 */
     97SubString::SubString(unsigned int argc, const char** argv)
     98{
     99  for(unsigned int i = 0; i < argc; ++i)
     100    this->strings.push_back(std::string(argv[i]));
     101}
    92102
    93103/**
  • trunk/src/lib/util/substring.h

    r7474 r7477  
    3535            char escapeChar ='\\', char safemode_char = '"', char comment_char = '\0');
    3636  /** @brief create a Substring as a copy of another one. @param subString the SubString to copy. */
     37  SubString(unsigned int argc, const char** argv);
    3738  SubString(const SubString& subString) { *this = subString; };
    3839  SubString(const SubString& subString, unsigned int subSetBegin);
Note: See TracChangeset for help on using the changeset viewer.