#include <userver/formats/json/parser/bool_parser.hpp>
SAX parser for JSON boolean values.
Definition at line 14 of file bool_parser.hpp.
Public Types | |
| using | ResultType |
Public Member Functions | |
| void | Subscribe (Subscriber< bool > &subscriber) |
| virtual void | Reset () |
| TypedParser< bool > & | GetParser () |
| virtual void | Null () |
| virtual void | Int64 (int64_t) |
| virtual void | Uint64 (uint64_t) |
| virtual void | Double (double) |
| virtual void | String (std::string_view) |
| virtual void | StartObject () |
| virtual void | Key (std::string_view key) |
| virtual void | EndObject () |
| virtual void | EndObject (size_t) |
| virtual void | StartArray () |
| virtual void | EndArray () |
| virtual void | EndArray (size_t) |
| void | SetState (ParserState &state) |
| std::string | GetCurrentPath () const |
Protected Member Functions | |
| void | Bool (bool b) override |
| std::string | GetPathItem () const override |
| std::string | Expected () const override |
| void | SetResult (bool &&value) |
| void | Throw (const std::string &found) |
Protected Attributes | |
| ParserState * | parser_state_ |
|
inherited |
Definition at line 141 of file typed_parser.hpp.
|
overrideprotectedvirtual |
Reimplemented from formats::json::parser::BaseParser.
|
inlinevirtualinherited |
Definition at line 40 of file base_parser.hpp.
|
inlinevirtualinherited |
Definition at line 39 of file base_parser.hpp.
|
overrideprotectedvirtual |
Implements formats::json::parser::BaseParser.
|
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.
|
overrideprotectedvirtual |
Implements formats::json::parser::BaseParser.
|
inlinevirtualinherited |
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.
Definition at line 147 of file typed_parser.hpp.
|
inlineprotectedinherited |
Definition at line 155 of file typed_parser.hpp.
|
inlineinherited |
Definition at line 42 of file base_parser.hpp.
|
inlineinherited |
Definition at line 139 of file typed_parser.hpp.
|
protectedinherited |
Definition at line 54 of file base_parser.hpp.