(
void)
const= 0;
128eEOL_native = eEOL_lf,
129 #elif defined(NCBI_OS_MSWIN) 130eEOL_native = eEOL_crlf,
132eEOL_native = eEOL_unknown,
143EEOLStyle eol_style = eEOL_unknown,
155 boolAtEOF(
void)
const;
156 charPeekChar(
void)
const;
158 voidUngetLine(
void);
161 Uint8GetLineNumber(
void)
const;
164EEOLStyle x_AdvanceEOLUnknown(
void);
165EEOLStyle x_AdvanceEOLSimple(
chareol,
charalt_eol);
166EEOLStyle x_AdvanceEOLCRLF(
void);
188: m_Start(start), m_End(end), m_Pos(start), m_LineNumber(0) { }
196: m_Start(start), m_End(start + length), m_Pos(start),
207 boolAtEOF(
void)
const;
208 charPeekChar(
void)
const;
210 voidUngetLine(
void);
213 Uint8GetLineNumber(
void)
const;
251 boolAtEOF(
void)
const;
252 charPeekChar(
void)
const;
254 voidUngetLine(
void);
257 Uint8GetLineNumber(
void)
const;
Implementation of ILineReader for IReader.
Simple implementation of ILineReader for regions of memory (such as memory-mapped files).
Simple implementation of ILineReader for i(o)streams.
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
Abstract base class for lightweight line-by-line reading.
A very basic data-read interface.
@ eNoOwnership
No ownership is assumed.
CVect2< NCBI_PROMOTE(int,U) > operator*(int v1, const CVect2< U > &v2)
AutoArray< char > m_Buffer
CBufferedLineReader & operator=(const CBufferedLineReader &)
CTempString GetCurrentLine(void) const
CMemoryLineReader(const char *start, const char *end)
Open a line reader over the half-open memory range [start, end).
AutoPtr< CMemoryFile > m_MemFile
AutoPtr< IReader > m_Reader
virtual void UngetLine(void)=0
Unget current line, which must be valid.
virtual ILineReader & operator++(void)=0
Make a line available.
CBufferedLineReader(const CBufferedLineReader &)
CMemoryLineReader(const char *start, SIZE_TYPE length)
Open a line reader over the half-open memory range [start, start+length).
AutoPtr< CNcbiIstream > m_Stream
virtual CTempString operator*(void) const =0
Return the current line, minus its terminator.
virtual Uint8 GetLineNumber(void) const =0
Returns the current line number (counting from 1, not 0).
virtual bool AtEOF(void) const =0
Indicates (negatively) whether there is any more input.
virtual char PeekChar(void) const =0
Returns the first character of the next string without consuming it.
virtual CT_POS_TYPE GetPosition(void) const =0
Return the current (absolute) position.
uint64_t Uint8
8-byte (64-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::istream CNcbiIstream
Portable alias for istream.
NCBI_NS_STD::string::size_type SIZE_TYPE
enum ENcbiOwnership EOwnership
Ownership relations between objects.
Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...
NCBI_XUTIL_EXPORT
Parameter to control printing diagnostic message about conversion of static array data from a differe...
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4