A line counting reader.
More...
#include <line_counting_reader.hpp>
|
| | line_counting_reader (std::unique_ptr< reader > &&p_base_reader) |
| | Creates a line counting reader.
|
| |
|
virtual | ~line_counting_reader () |
| | Destroys the line counting reader.
|
| |
| const file_location & | get_location () const |
| |
|
virtual | ~reader () |
| | Destroys the reader.
|
| |
| bool | has_next () const |
| | Returns true when the next character exists.
|
| |
| char | peek () const |
| | Returns the current character.
|
| |
| void | next () |
| | Moves to the next character.
|
| |
| const reader & | base_reader () const |
| | Returns the base reader.
|
| |
◆ line_counting_reader()
| tetengo::json::line_counting_reader::line_counting_reader |
( |
std::unique_ptr< reader > && | p_base_reader | ) |
|
|
explicit |
Creates a line counting reader.
- Parameters
-
| p_base_reader | A unique pointer to a base reader. |
- Exceptions
-
| std::invalid_argument | When p_base_reader is nullptr. |
◆ get_location()
| const file_location & tetengo::json::line_counting_reader::get_location |
( |
| ) |
const |
|
nodiscard |
Returns the location.
- Returns
- The location.
- Exceptions
-
| std::logic_error | When current position is beyond the termination point. |
The documentation for this class was generated from the following file: