Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
CursorStreamWrapper< InputStream, Encoding > Class Template Reference

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

#include </__w/arcaneframework.github.io/arcaneframework.github.io/framework/arccore/src/common/arccore/common/internal/json/rapidjson/cursorstreamwrapper.h>

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

Public Types

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

Public Member Functions

 CursorStreamWrapper (InputStream &is)
Ch Take ()
size_t GetLine () const
 Get the error line number, if error exists.
size_t GetColumn () const
 Get the error column number, if error exists.
Public Member Functions inherited from GenericStreamWrapper< InputStream, UTF8<> >
 GenericStreamWrapper (InputStream &is)
Ch Peek () const
Ch Take ()
size_t Tell ()
Ch * PutBegin ()
void Put (Ch ch)
void Flush ()
size_t PutEnd (Ch *ch)
const Ch * Peek4 () const
UTFType GetType () const
bool HasBOM () const

Private Attributes

size_t line_
 Current Line.
size_t col_
 Current Column.

Additional Inherited Members

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

Member Typedef Documentation

◆ Ch

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

Definition at line 42 of file cursorstreamwrapper.h.

Constructor & Destructor Documentation

◆ CursorStreamWrapper()

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

Definition at line 44 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 62 of file cursorstreamwrapper.h.

References col_.

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

References line_.

◆ Take()

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

Definition at line 48 of file cursorstreamwrapper.h.

Member Data Documentation

◆ col_

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

Current Column.

Definition at line 66 of file cursorstreamwrapper.h.

Referenced by GetColumn().

◆ line_

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

Current Line.

Definition at line 65 of file cursorstreamwrapper.h.

Referenced by GetLine().


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