API Documentation
|
Contains methods for easily reading objects in an ascii stream. More...
#include <Scanner.h>
Public Member Functions | |
String & | currentLine () |
const String & | currentLine () const |
uint08 | dataSize () const |
File | file () const |
virtual uint01 * | getByteArray () |
template<class t_type > | |
t_type | getColumn (uint04 column) |
const char * | getCurrent () const |
uint08 | getCurrentFilePosition () |
uint08 | getCurrentLineNumber () const |
TranslatedString | getDebugPosition () const |
fltp04 | getFilePercent () |
uint04 | getLineLength () const |
template<class t_type > | |
t_type | getNext () |
void | getNext (String &next) |
template<class t_type > | |
t_type | getNext (uint04 count) |
template<class t_type > | |
t_type | getNextHex () |
bool | hasNext () const |
bool | isComment (char comment) const |
uint04 & | linePosition () |
void | moveForward (uint04 distance=1) |
virtual bool | nextLine () |
virtual bool | nextLine (String &string, bool clear_string=true) |
char | quoteCharacter () const |
void | resetLinePosition () |
Scanner (const File &file, char delimiter='|', File::OpenMode mode=File::e_ascii_read) | |
Scanner (const String &string, char delimiter='|') | |
void | setDelimiter (char delimiter) |
virtual void | setFilePosition (uint08 file_position, bool read_line=true) |
void | setHasDelimiter (const bool has_delimiter) |
void | setIgnoreEmptyLines (bool ignore_new_lines) |
void | setIgnoreWhiteSpace (bool ignore_white_space) |
void | setQuoteCharacter (char quote_character) |
uint04 | skip () |
bool | skipTo (char location, bool ignore_case=false) |
bool | skipTo (const Buffer< char > &locations, bool ignore_case=false) |
bool | skipTo (const char *location, bool ignore_case=false) |
uint04 | skipWhiteSpace () |
virtual | ~Scanner () |
Protected Attributes | |
uint04 | m_cur_column |
uint04 | m_cur_line_pos |
uint08 | m_current_file_position |
String | m_current_line |
uint08 | m_current_line_number |
uint04 | m_current_line_size |
uint08 | m_data_size |
char | m_delimiter |
File | m_file |
bool | m_has_delimiter |
bool | m_ignore_empty_lines |
bool | m_ignore_white_space = false |
char | m_quote_character |
String | m_time_format |
Contains methods for easily reading objects in an ascii stream.
|
explicit |
|
virtual |
|
inline |
|
inline |
uint08 dataSize | ( | ) | const |
|
inline |
|
inlinevirtual |
Reimplemented in BufferedScanner.
|
inline |
const char * getCurrent | ( | ) | const |
uint08 getCurrentFilePosition | ( | ) |
uint08 getCurrentLineNumber | ( | ) | const |
TranslatedString getDebugPosition | ( | ) | const |
fltp04 getFilePercent | ( | ) |
uint04 getLineLength | ( | ) | const |
t_type getNext | ( | ) |
void getNext | ( | String & | next | ) |
|
inline |
t_type getNextHex | ( | ) |
bool hasNext | ( | ) | const |
bool isComment | ( | char | comment | ) | const |
|
inline |
void moveForward | ( | uint04 | distance = 1 | ) |
|
virtual |
Reimplemented in BufferedScanner.
|
virtual |
Reimplemented in BufferedScanner.
|
inline |
void resetLinePosition | ( | ) |
void setDelimiter | ( | char | delimiter | ) |
|
virtual |
Reimplemented in BufferedScanner.
|
inline |
|
inline |
|
inline |
|
inline |
uint04 skip | ( | ) |
bool skipTo | ( | char | location, |
bool | ignore_case = false ) |
bool skipTo | ( | const Buffer< char > & | locations, |
bool | ignore_case = false ) |
bool skipTo | ( | const char * | location, |
bool | ignore_case = false ) |
uint04 skipWhiteSpace | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |