#include <userver/formats/json/parser/array_parser.hpp>
SAX parser that fills arrays or sets from JSON arrays.
Definition at line 18 of file array_parser.hpp.
Inheritance diagram for formats::json::parser::ArrayParser< Item, ItemParser, Array >:Public Types | |
| using | ResultType = T |
Public Member Functions | |
| ArrayParser (ItemParser &item_parser) | |
| void | Reset () override |
| void | Subscribe (Subscriber< T > &subscriber) |
| TypedParser< T > & | GetParser () |
| virtual void | Key (std::string_view key) |
| virtual void | EndObject () |
| virtual void | EndObject (size_t) |
| virtual void | EndArray (size_t) |
| void | SetState (ParserState &state) |
| std::string | GetCurrentPath () const |
Protected Member Functions | |
| void | StartArray () override |
| void | EndArray () override |
| void | Int64 (int64_t i) override |
| void | Uint64 (uint64_t i) override |
| void | Null () override |
| void | Bool (bool b) override |
| void | Double (double d) override |
| void | String (std::string_view sw) override |
| void | StartObject () override |
| std::string | Expected () const override |
| void | PushParser (std::string_view what) |
| void | OnSend (Item &&item) override |
| std::string | GetPathItem () const override |
| BaseParser & | Parser () |
| void | SetResult (T &&value) |
| void | Throw (const std::string &found) |
Protected Attributes | |
| ParserState * | parser_state_ {nullptr} |
|
inherited |
Definition at line 141 of file typed_parser.hpp.
|
inlineexplicit |
Definition at line 20 of file array_parser.hpp.
|
inlineoverrideprotectedvirtual |
Reimplemented from formats::json::parser::BaseParser.
Definition at line 73 of file array_parser.hpp.
|
inlineoverrideprotectedvirtual |
Reimplemented from formats::json::parser::BaseParser.
Definition at line 77 of file array_parser.hpp.
|
inlineoverrideprotectedvirtual |
Reimplemented from formats::json::parser::BaseParser.
Definition at line 52 of file array_parser.hpp.
|
inlinevirtualinherited |
Definition at line 40 of file base_parser.hpp.
|
inlinevirtualinherited |
Definition at line 39 of file base_parser.hpp.
|
inlineoverrideprotectedvirtual |
Implements formats::json::parser::BaseParser.
Definition at line 90 of file array_parser.hpp.
|
inlineinherited |
Definition at line 46 of file base_parser.hpp.
|
inlineinherited |
Returns an actual parser. It is commonly used in PushParser() to identify typed parser of a proxy parser.
Definition at line 152 of file typed_parser.hpp.
|
inlineoverrideprotectedvirtual |
Implements formats::json::parser::BaseParser.
Definition at line 113 of file array_parser.hpp.
|
inlineoverrideprotectedvirtual |
Reimplemented from formats::json::parser::BaseParser.
Definition at line 61 of file array_parser.hpp.
|
inlineoverrideprotectedvirtual |
Reimplemented from formats::json::parser::BaseParser.
Definition at line 69 of file array_parser.hpp.
|
inlineoverrideprotectedvirtual |
Implements formats::json::parser::Subscriber< Item >.
Definition at line 105 of file array_parser.hpp.
|
inlineprotected |
Definition at line 115 of file array_parser.hpp.
|
inlineprotected |
Definition at line 92 of file array_parser.hpp.
|
inlineoverridevirtual |
Resets parser's internal state. It should not call Reset() of subparsers (if any). Subparsers' Reset() should be called just before pushing it onto the stack.
Reimplemented from formats::json::parser::TypedParser< T >.
Definition at line 26 of file array_parser.hpp.
|
inlineprotectedinherited |
Definition at line 155 of file typed_parser.hpp.
|
inlineinherited |
Definition at line 42 of file base_parser.hpp.
|
inlineoverrideprotectedvirtual |
Reimplemented from formats::json::parser::BaseParser.
Definition at line 44 of file array_parser.hpp.
|
inlineoverrideprotectedvirtual |
Reimplemented from formats::json::parser::BaseParser.
Definition at line 85 of file array_parser.hpp.
|
inlineoverrideprotectedvirtual |
Reimplemented from formats::json::parser::BaseParser.
Definition at line 81 of file array_parser.hpp.
|
inlineinherited |
Definition at line 139 of file typed_parser.hpp.
|
inlineoverrideprotectedvirtual |
Reimplemented from formats::json::parser::BaseParser.
Definition at line 65 of file array_parser.hpp.
|
protectedinherited |
Definition at line 54 of file base_parser.hpp.