25 #ifndef PRESAGE_TOKENIZER 26 #define PRESAGE_TOKENIZER 110 std::streamoff offbackup =
stream.tellg();
112 std::streamoff curroff =
offbeg;
114 while (curroff <
offend) {
116 str.push_back(
stream.peek());
160 #endif // PRESAGE_TOKENIZER Tokenizer(std::istream &stream, const std::string blankspaces, const std::string separators)
bool isBlankspace(const int character) const
StreamGuard(std::istream &so, std::streamoff &of)
bool lowercaseMode() const
virtual int countTokens()=0
virtual double progress() const =0
std::string separatorChars() const
virtual std::string nextToken()=0
std::istream & guardedStream
virtual bool hasMoreTokens() const =0
std::ios::iostate currstate
bool isSeparator(const int character) const
std::string blankspaceChars() const
std::string streamToString() const