userver: userver/formats/json/parser/bool_parser.hpp Source File
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
bool_parser.hpp
1#pragma once
2
3#include <userver/formats/json/parser/typed_parser.hpp>
4
5USERVER_NAMESPACE_BEGIN
6
7namespace formats::json::parser {
8
9class BoolParser final : public formats::json::parser::TypedParser<bool> {
10 public:
11 using formats::json::parser::TypedParser<bool>::TypedParser;
12
13 protected:
14 void Bool(bool b) override;
15
16 std::string GetPathItem() const override;
17
18 std::string Expected() const override;
19};
20
21} // namespace formats::json::parser
22
23USERVER_NAMESPACE_END