userver: userver/formats/json/parser/string_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
string_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 StringParser final : public TypedParser<std::string> {
10 public:
11 using TypedParser::TypedParser;
12
13 protected:
14 void String(std::string_view sw) override;
15
16 std::string GetPathItem() const override { return {}; }
17
18 std::string Expected() const override;
19};
20
21} // namespace formats::json::parser
22
23USERVER_NAMESPACE_END