Cursor stream wrapper for counting line and column number if error exists. More...
#include <cursorstreamwrapper.h>
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 Ch * | Peek4 () const |
void | Put (Ch ch) |
Ch * | PutBegin () |
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_ |
Cursor stream wrapper for counting line and column number if error exists.
InputStream | Any stream that implements Stream Concept |
Definition at line 38 of file cursorstreamwrapper.h.
typedef Encoding::Ch CursorStreamWrapper< InputStream, Encoding >::Ch |
Definition at line 41 of file cursorstreamwrapper.h.
|
inline |
Definition at line 43 of file cursorstreamwrapper.h.
|
inline |
Get the error column number, if error exists.
Definition at line 69 of file cursorstreamwrapper.h.
|
inline |
Get the error line number, if error exists.
Definition at line 64 of file cursorstreamwrapper.h.
|
inline |
Definition at line 48 of file cursorstreamwrapper.h.
|
private |
Current Column.
Definition at line 76 of file cursorstreamwrapper.h.
|
private |
Current Line.
Definition at line 75 of file cursorstreamwrapper.h.