71 m_fStream( aFileName.GetFullPath().fn_str() )
75 wxString msg = wxString::Format(
76 _(
"Unable to open filename '%s' for reading" ), aFileName.GetFullPath().GetData() );
77 THROW_IO_ERROR( msg );
IFSTREAM_LINE_READER(const wxFileName &aFileName)
LINE_READER(unsigned aMaxLineLength=LINE_READER_LINE_DEFAULT_MAX)
Build a line reader and fixes the length of the maximum supported line length to aMaxLineLength.
unsigned m_length
no. bytes in line before trailing nul.
char * m_line
the read line of UTF8 text
wxString m_source
origin of text lines, e.g. filename or "clipboard"
void SetStream(std::istream &aStream)
Set the stream for this line reader.
char * ReadLine() override
Read a line of text into the buffer and increments the line number counter.
~STDISTREAM_LINE_READER()