Class creating a one-level token hierarchy.
More...
#include <FFaTokenizer.H>
|
| FFaTokenizer (char entryBegin, char entryEnd, char separator=',') |
| The constructor defines the start, stop and separator characters. More...
|
|
| FFaTokenizer (FILE *tokenFile, char entryBegin, char entryEnd, char separator=',', bool sq=true) |
| Constructor parsing the tokens from a file. More...
|
|
| FFaTokenizer (std::istream &tokenStream, char entryBegin, char entryEnd, char separator=',', bool sq=true) |
| Constructor parsing the tokens from an input stream. More...
|
|
| FFaTokenizer (const std::string &tokenString, char entryBegin, char entryEnd, char separator=',', bool sq=true) |
| Constructor parsing the tokens from a string. More...
|
|
virtual | ~FFaTokenizer () |
| Empty destructor. More...
|
|
std::string::const_iterator | createTokens (std::string::const_iterator tBegin, std::string::const_iterator tEnd) |
| Creates tokens from a string range. More...
|
|
Class creating a one-level token hierarchy.
The class is essentially a list of strings, with some added functionality for parsing the string elements (tokens) based on the specified start-, stop- and separator characters.
◆ FFaTokenizer() [1/4]
FFaTokenizer::FFaTokenizer |
( |
char |
entryBegin, |
|
|
char |
entryEnd, |
|
|
char |
separator = ',' |
|
) |
| |
|
inline |
The constructor defines the start, stop and separator characters.
- Parameters
-
[in] | entryBegin | Character indicating the start of the token list |
[in] | entryEnd | Character indicating the end of the token list |
[in] | separator | Character separating each token |
◆ FFaTokenizer() [2/4]
FFaTokenizer::FFaTokenizer |
( |
FILE * |
tokenFile, |
|
|
char |
entryBegin, |
|
|
char |
entryEnd, |
|
|
char |
separator = ',' , |
|
|
bool |
sq = true |
|
) |
| |
|
inline |
Constructor parsing the tokens from a file.
- Parameters
-
[in] | tokenFile | File to parse the tokens from |
[in] | entryBegin | Character indicating the start of the token list |
[in] | entryEnd | Character indicating the end of the token list |
[in] | separator | Character separating each token |
[in] | sq | If true, strip quotes ("-characters) from the tokens |
◆ FFaTokenizer() [3/4]
FFaTokenizer::FFaTokenizer |
( |
std::istream & |
tokenStream, |
|
|
char |
entryBegin, |
|
|
char |
entryEnd, |
|
|
char |
separator = ',' , |
|
|
bool |
sq = true |
|
) |
| |
|
inline |
Constructor parsing the tokens from an input stream.
- Parameters
-
[in] | tokenStream | Input stream to parse the tokens from |
[in] | entryBegin | Character indicating the start of the token list |
[in] | entryEnd | Character indicating the end of the token list |
[in] | separator | Character separating each token |
[in] | sq | If true, strip quotes ("-characters) from the tokens |
◆ FFaTokenizer() [4/4]
FFaTokenizer::FFaTokenizer |
( |
const std::string & |
tokenString, |
|
|
char |
entryBegin, |
|
|
char |
entryEnd, |
|
|
char |
separator = ',' , |
|
|
bool |
sq = true |
|
) |
| |
|
inline |
Constructor parsing the tokens from a string.
- Parameters
-
[in] | tokenString | String to parse the tokens from |
[in] | entryBegin | Character indicating the start of the token list |
[in] | entryEnd | Character indicating the end of the token list |
[in] | separator | Character separating each token |
[in] | sq | If true, strip quotes ("-characters) from the tokens |
◆ ~FFaTokenizer()
virtual FFaTokenizer::~FFaTokenizer |
( |
| ) |
|
|
inlinevirtual |
◆ createTokens() [1/4]
Creates tokens from generic input.
◆ createTokens() [2/4]
void FFaTokenizer::createTokens |
( |
FILE * |
tokenFile | ) |
|
|
protected |
Creates tokens from a file.
◆ createTokens() [3/4]
void FFaTokenizer::createTokens |
( |
std::istream & |
tokenStream | ) |
|
|
protected |
Creates tokens from an input stream.
◆ createTokens() [4/4]
std::string::const_iterator FFaTokenizer::createTokens |
( |
std::string::const_iterator |
tBegin, |
|
|
std::string::const_iterator |
tEnd |
|
) |
| |
Creates tokens from a string range.
◆ eb
◆ ee
◆ iAmStrippingQuotes
bool FFaTokenizer::iAmStrippingQuotes |
|
private |
If true, strip "-characters from tokens.
◆ ts
The documentation for this class was generated from the following files: