Public Types | Public Member Functions | Private Attributes | List of all members
CursorStreamWrapper< InputStream, Encoding > Class Template Reference

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

#include <cursorstreamwrapper.h>

Inheritance diagram for CursorStreamWrapper< InputStream, Encoding >:
Inheritance graph
[legend]

Public Types

typedef Encoding::Ch Ch
 
- Public Types inherited from GenericStreamWrapper< InputStream, Encoding >
typedef Encoding::Ch Ch
 

Public Member Functions

 CursorStreamWrapper (InputStream &is)
 
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...
 
Ch Take ()
 
- Public Member Functions inherited from GenericStreamWrapper< InputStream, Encoding >
void Flush ()
 
 GenericStreamWrapper (InputStream &is)
 
UTFType GetType () const
 
bool HasBOM () const
 
Ch Peek () const
 
const ChPeek4 () const
 
void Put (Ch ch)
 
ChPutBegin ()
 
size_t PutEnd (Ch *ch)
 
Ch Take ()
 
size_t Tell ()
 

Private Attributes

size_t col_
 Current Column. More...
 
size_t line_
 Current Line. More...
 

Additional Inherited Members

- Protected Attributes inherited from GenericStreamWrapper< InputStream, Encoding >
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 38 of file cursorstreamwrapper.h.

Member Typedef Documentation

template<typename InputStream , typename Encoding = UTF8<>>
typedef Encoding::Ch CursorStreamWrapper< InputStream, Encoding >::Ch

Definition at line 41 of file cursorstreamwrapper.h.

Constructor & Destructor Documentation

template<typename InputStream , typename Encoding = UTF8<>>
CursorStreamWrapper< InputStream, Encoding >::CursorStreamWrapper ( InputStream &  is)
inline

Definition at line 43 of file cursorstreamwrapper.h.

Member Function Documentation

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 69 of file cursorstreamwrapper.h.

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 64 of file cursorstreamwrapper.h.

template<typename InputStream , typename Encoding = UTF8<>>
Ch CursorStreamWrapper< InputStream, Encoding >::Take ( )
inline

Definition at line 48 of file cursorstreamwrapper.h.

Member Data Documentation

template<typename InputStream , typename Encoding = UTF8<>>
size_t CursorStreamWrapper< InputStream, Encoding >::col_
private

Current Column.

Definition at line 76 of file cursorstreamwrapper.h.

template<typename InputStream , typename Encoding = UTF8<>>
size_t CursorStreamWrapper< InputStream, Encoding >::line_
private

Current Line.

Definition at line 75 of file cursorstreamwrapper.h.


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


xbot_talker
Author(s): wangxiaoyun
autogenerated on Sat Oct 10 2020 03:27:54