bes  Updated for version 3.20.8
CursorStreamWrapper< InputStream, Encoding > Class Template Reference

Cursor stream wrapper for counting line and column number if error exists. More...

#include <cursorstreamwrapper.h>

Collaboration diagram for CursorStreamWrapper< InputStream, Encoding >:
Collaboration graph

Public Types

typedef Encoding::Ch Ch
 

Public Member Functions

 CursorStreamWrapper (InputStream &is)
 
void Flush ()
 
size_t GetColumn () const
 Get the error column number, if error exists. More...
 
size_t GetLine () const
 Get the error line number, if error exists. More...
 
UTFType GetType () const
 
bool HasBOM () const
 
Ch Peek () const
 
const Ch * Peek4 () const
 
void Put (Ch ch)
 
Ch * PutBegin ()
 
size_t PutEnd (Ch *ch)
 
Ch Take ()
 
size_t Tell ()
 

Protected Attributes

InputStream & is_
 

Detailed Description

template<typename InputStream, typename Encoding = UTF8<>>
class CursorStreamWrapper< InputStream, Encoding >

Cursor stream wrapper for counting line and column number if error exists.

Template Parameters
InputStreamAny stream that implements Stream Concept

Definition at line 39 of file cursorstreamwrapper.h.

Member Function Documentation

◆ GetColumn()

template<typename InputStream , typename Encoding = UTF8<>>
size_t CursorStreamWrapper< InputStream, Encoding >::GetColumn ( ) const
inline

Get the error column number, if error exists.

Definition at line 61 of file cursorstreamwrapper.h.

◆ GetLine()

template<typename InputStream , typename Encoding = UTF8<>>
size_t CursorStreamWrapper< InputStream, Encoding >::GetLine ( ) const
inline

Get the error line number, if error exists.

Definition at line 59 of file cursorstreamwrapper.h.


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