API Documentation
Loading...
Searching...
No Matches
BufferedScanner Class Reference

#include <BufferedScanner.h>

Inheritance diagram for BufferedScanner:
[legend]
Collaboration diagram for BufferedScanner:
[legend]

Public Member Functions

 BufferedScanner (const File &file, char delimiter='|', File::OpenMode mode=File::e_ascii_read)
 
 BufferedScanner (const String &string, char delimiter='|')
 
bool nextLine (String &string, bool clear_string=true) final override
 
void setFilePosition (uint08 file_position, bool read_line=true) final override
 
uint01getByteArray () final override
 
bool nextLine () final override
 
- Public Member Functions inherited from Scanner
 Scanner (const File &file, char delimiter='|', File::OpenMode mode=File::e_ascii_read)
 
 Scanner (const String &string, char delimiter='|')
 
virtual ~Scanner ()
 
void setDelimiter (char delimiter)
 
uint08 getCurrentLineNumber () const
 
uint08 getCurrentFilePosition ()
 
fltp04 getFilePercent ()
 
const StringcurrentLine () const
 
StringcurrentLine ()
 
const char * getCurrent () const
 
void moveForward (uint04 distance=1)
 
bool isComment (char comment) const
 
uint04 getLineLength () const
 
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 ()
 
void resetLinePosition ()
 
void setHasDelimiter (const bool has_delimiter)
 
uint04linePosition ()
 
void setQuoteCharacter (char quote_character)
 
char quoteCharacter () const
 
File file () const
 
template<class t_type >
t_type getNext ()
 
void getNext (String &next)
 
template<class t_type >
t_type getNextHex ()
 
template<class t_type >
t_type getNext (uint04 count)
 
bool hasNext () const
 
template<class t_type >
t_type getColumn (uint04 column)
 
TranslatedString getDebugPosition () const
 
void setIgnoreEmptyLines (bool ignore_new_lines)
 
void setIgnoreWhiteSpace (bool ignore_white_space)
 
uint08 dataSize () const
 
template<>
fltp04 NDEVR_BASE_API getNext ()
 
template<>
fltp08 NDEVR_BASE_API getNext ()
 
template<>
uint04 NDEVR_BASE_API getNext ()
 
template<>
uint02 NDEVR_BASE_API getNext ()
 
template<>
uint01 NDEVR_BASE_API getNext ()
 
template<>
sint02 NDEVR_BASE_API getNext ()
 
template<>
sint04 NDEVR_BASE_API getNext ()
 
template<>
uint04 NDEVR_BASE_API getNextHex ()
 
template<>
sint08 NDEVR_BASE_API getNext ()
 
template<>
char NDEVR_BASE_API getNext ()
 
template<>
sint01 NDEVR_BASE_API getNext ()
 
template<>
bool NDEVR_BASE_API getNext ()
 
template<>
String NDEVR_BASE_API getNext ()
 
template<>
Angle< sint04 > NDEVR_BASE_API getNext ()
 
template<>
Angle< fltp08 > NDEVR_BASE_API getNext ()
 
template<>
RGBColor NDEVR_BASE_API getNext ()
 
template<>
Time NDEVR_BASE_API getNext ()
 

Protected Attributes

String m_file_buffer
 
Buffer< uint04m_new_lines
 
- Protected Attributes inherited from Scanner
String m_current_line
 
File m_file
 
String m_time_format
 
uint08 m_current_line_number
 
uint08 m_current_file_position
 
uint08 m_data_size
 
uint04 m_cur_line_pos
 
uint04 m_cur_column
 
uint04 m_current_line_size
 
char m_delimiter
 
char m_quote_character
 
bool m_ignore_empty_lines
 
bool m_ignore_white_space = false
 
bool m_has_delimiter
 

Constructor & Destructor Documentation

◆ BufferedScanner() [1/2]

BufferedScanner ( const File & file,
char delimiter = '|',
File::OpenMode mode = File::e_ascii_read )

◆ BufferedScanner() [2/2]

BufferedScanner ( const String & string,
char delimiter = '|' )
explicit

Member Function Documentation

◆ getByteArray()

uint01 * getByteArray ( )
finaloverridevirtual

Reimplemented from Scanner.

◆ nextLine() [1/2]

bool nextLine ( )
finaloverridevirtual

Reimplemented from Scanner.

◆ nextLine() [2/2]

bool nextLine ( String & string,
bool clear_string = true )
finaloverridevirtual

Reimplemented from Scanner.

◆ setFilePosition()

void setFilePosition ( uint08 file_position,
bool read_line = true )
finaloverridevirtual

Reimplemented from Scanner.

Member Data Documentation

◆ m_file_buffer

String m_file_buffer
protected

◆ m_new_lines

Buffer<uint04> m_new_lines
protected

The documentation for this class was generated from the following files: