13 #ifndef FFA_TOKENIZER_H
14 #define FFA_TOKENIZER_H
48 char separator =
',',
bool sq =
true)
60 FFaTokenizer(std::istream& tokenStream,
char entryBegin,
char entryEnd,
61 char separator =
',',
bool sq =
true)
73 FFaTokenizer(
const std::string& tokenString,
char entryBegin,
char entryEnd,
74 char separator =
',',
bool sq =
true)
77 this->
createTokens(tokenString.begin(), tokenString.end());
84 std::string::const_iterator
createTokens(std::string::const_iterator tBegin,
85 std::string::const_iterator tEnd);
Class creating a one-level token hierarchy.
Definition: FFaTokenizer.H:32
FFaTokenizer(FILE *tokenFile, char entryBegin, char entryEnd, char separator=',', bool sq=true)
Constructor parsing the tokens from a file.
Definition: FFaTokenizer.H:47
std::string::const_iterator createTokens(std::string::const_iterator tBegin, std::string::const_iterator tEnd)
Creates tokens from a string range.
Definition: FFaTokenizer.C:124
char ts
Token separator.
Definition: FFaTokenizer.H:98
char ee
End character.
Definition: FFaTokenizer.H:97
char eb
Start character.
Definition: FFaTokenizer.H:96
FFaTokenizer(char entryBegin, char entryEnd, char separator=',')
The constructor defines the start, stop and separator characters.
Definition: FFaTokenizer.H:38
FFaTokenizer(std::istream &tokenStream, char entryBegin, char entryEnd, char separator=',', bool sq=true)
Constructor parsing the tokens from an input stream.
Definition: FFaTokenizer.H:60
FFaTokenizer(const std::string &tokenString, char entryBegin, char entryEnd, char separator=',', bool sq=true)
Constructor parsing the tokens from a string.
Definition: FFaTokenizer.H:73
virtual ~FFaTokenizer()
Empty destructor.
Definition: FFaTokenizer.H:81
bool iAmStrippingQuotes
If true, strip "-characters from tokens.
Definition: FFaTokenizer.H:100