userver: userver/formats/json/parser/bool_parser.hpp Source File
Loading...
Searching...
No Matches
bool_parser.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/formats/json/parser/bool_parser.hpp
4/// @brief @copybrief formats::json::parser::BoolParser
5/// @ingroup userver_universal
6
7#include <userver/formats/json/parser/typed_parser.hpp>
8
9USERVER_NAMESPACE_BEGIN
10
11namespace formats::json::parser {
12
13/// @brief SAX parser for JSON boolean values.
14class BoolParser final : public formats::json::parser::TypedParser<bool> {
15public:
16 using formats::json::parser::TypedParser<bool>::TypedParser;
17
18protected:
19 void Bool(bool b) override;
20
21 std::string GetPathItem() const override;
22
23 std::string Expected() const override;
24};
25
26} // namespace formats::json::parser
27
28USERVER_NAMESPACE_END