--- trunk/src/utils/StringTokenizer.hpp 2013/06/16 15:15:42 1879 +++ trunk/src/utils/StringTokenizer.hpp 2015/03/07 23:52:07 2073 @@ -89,7 +89,8 @@ namespace OpenMD { * @note this is still a little bit java like implementation. Pure c++ one should use TokenIterator. * Boost's tokenizer class is one of them */ - StringTokenizer(std::string::const_iterator& first, std::string::const_iterator& last, + StringTokenizer(std::string::const_iterator& first, + std::string::const_iterator& last, const std::string & delim = " ;\t\n\r"); /** @@ -125,6 +126,12 @@ namespace OpenMD { */ std::string nextToken(); + /** + * Skips the next token from this string tokenizer. + * @exception NoSuchElementException if there are no more tokens in this tokenizer's string + */ + void skipToken(); + //actually, nextToken Can be template function //template //ReturnType nextToken(); @@ -180,6 +187,11 @@ namespace OpenMD { * @return all of the tokens */ std::vector getAllTokens(); + /** + * Returns the remaining unparsed string + * @return the remaining unparsed string + */ + std::string getRemainingString(); private: /**