tetengo 1.8.2
A multipurpose library set
Loading...
Searching...
No Matches
comment_removing_reader.hpp
Go to the documentation of this file.
1
7#if !defined(TETENGO_JSON_COMMENTREMOVINGREADER_HPP)
8#define TETENGO_JSON_COMMENTREMOVINGREADER_HPP
9
10#include <memory>
11#include <string>
12
14
15
16namespace tetengo::json
17{
22 {
23 public:
24 // constructors and destructor
25
34 comment_removing_reader(std::unique_ptr<reader>&& p_base_reader, std::string single_line_begin);
35
40
41
42 private:
43 // types
44
45 class impl;
46
47
48 // variables
49
50 const std::unique_ptr<impl> m_p_impl;
51
52
53 // virtual functions
54
55 virtual bool has_next_impl() const override;
56
57 virtual char peek_impl() const override;
58
59 virtual void next_impl() override;
60
61 virtual const reader& base_reader_impl() const override;
62 };
63
64
65}
66
67
68#endif
A comment removing reader.
Definition comment_removing_reader.hpp:22
virtual ~comment_removing_reader()
Destroys the comment removing reader.
comment_removing_reader(std::unique_ptr< reader > &&p_base_reader, std::string single_line_begin)
Creates a comment removing reader.
A reader.
Definition reader.hpp:19
A JSON library.
A reader.