A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/line__reader_8hpp_source.html below:

NCBI C++ ToolKit: include/util/line_reader.hpp Source File

1 #ifndef UTIL___LINE_READER__HPP 2 #define UTIL___LINE_READER__HPP 72  virtual bool AtEOF

(

void

)

const

= 0;

128

eEOL_native = eEOL_lf,

129 #elif defined(NCBI_OS_MSWIN) 130

eEOL_native = eEOL_crlf,

132

eEOL_native = eEOL_unknown,

143

EEOLStyle eol_style = eEOL_unknown,

155  bool

AtEOF(

void

)

const

;

156  char

PeekChar(

void

)

const

;

158  void

UngetLine(

void

);

161  Uint8

GetLineNumber(

void

)

const

;

164

EEOLStyle x_AdvanceEOLUnknown(

void

);

165

EEOLStyle x_AdvanceEOLSimple(

char

eol,

char

alt_eol);

166

EEOLStyle 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  bool

AtEOF(

void

)

const

;

208  char

PeekChar(

void

)

const

;

210  void

UngetLine(

void

);

213  Uint8

GetLineNumber(

void

)

const

;

251  bool

AtEOF(

void

)

const

;

252  char

PeekChar(

void

)

const

;

254  void

UngetLine(

void

);

257  Uint8

GetLineNumber(

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