userver: formats::json::parser::JsonValueParser Class Reference
Loading...
Searching...
No Matches
formats::json::parser::JsonValueParser Class Referencefinal

#include <userver/formats/json/parser/parser_json.hpp>

Detailed Description

SAX-parser for formats::json::Value.

Definition at line 12 of file parser_json.hpp.

+ Inheritance diagram for formats::json::parser::JsonValueParser:
+ Collaboration diagram for formats::json::parser::JsonValueParser:

Public Member Functions

void Null () override
 
void Bool (bool) override
 
void Int64 (int64_t) override
 
void Uint64 (uint64_t) override
 
void Double (double) override
 
void String (std::string_view) override
 
void StartObject () override
 
void Key (std::string_view key) override
 
void EndObject (size_t) override
 
void StartArray () override
 
void EndArray (size_t) override
 
std::string Expected () const override
 
- Public Member Functions inherited from formats::json::parser::TypedParser< Value >
void Subscribe (Subscriber< Value > &subscriber)
 
virtual void Reset ()
 
TypedParser< Value > & GetParser ()
 
- Public Member Functions inherited from formats::json::parser::BaseParser
virtual void EndObject ()
 
virtual void EndArray ()
 
void SetState (ParserState &state)
 

Additional Inherited Members

- Public Types inherited from formats::json::parser::TypedParser< Value >
using ResultType
 
- Protected Member Functions inherited from formats::json::parser::TypedParser< Value >
void SetResult (Value &&value)
 
- Protected Member Functions inherited from formats::json::parser::BaseParser
void Throw (const std::string &found)
 
- Protected Attributes inherited from formats::json::parser::BaseParser
ParserStateparser_state_ {nullptr}
 

Member Function Documentation

◆ Bool()

void formats::json::parser::JsonValueParser::Bool ( bool )
overridevirtual

Reimplemented from formats::json::parser::BaseParser.

◆ Double()

void formats::json::parser::JsonValueParser::Double ( double )
overridevirtual

Reimplemented from formats::json::parser::BaseParser.

◆ EndArray()

void formats::json::parser::JsonValueParser::EndArray ( size_t )
overridevirtual

Reimplemented from formats::json::parser::BaseParser.

◆ EndObject()

void formats::json::parser::JsonValueParser::EndObject ( size_t )
overridevirtual

Reimplemented from formats::json::parser::BaseParser.

◆ Expected()

std::string formats::json::parser::JsonValueParser::Expected ( ) const
overridevirtual

◆ Int64()

void formats::json::parser::JsonValueParser::Int64 ( int64_t )
overridevirtual

Reimplemented from formats::json::parser::BaseParser.

◆ Key()

void formats::json::parser::JsonValueParser::Key ( std::string_view key)
overridevirtual

Reimplemented from formats::json::parser::BaseParser.

◆ Null()

void formats::json::parser::JsonValueParser::Null ( )
overridevirtual

Reimplemented from formats::json::parser::BaseParser.

◆ StartArray()

void formats::json::parser::JsonValueParser::StartArray ( )
overridevirtual

Reimplemented from formats::json::parser::BaseParser.

◆ StartObject()

void formats::json::parser::JsonValueParser::StartObject ( )
overridevirtual

Reimplemented from formats::json::parser::BaseParser.

◆ String()

void formats::json::parser::JsonValueParser::String ( std::string_view )
overridevirtual

Reimplemented from formats::json::parser::BaseParser.

◆ Uint64()

void formats::json::parser::JsonValueParser::Uint64 ( uint64_t )
overridevirtual

Reimplemented from formats::json::parser::BaseParser.


The documentation for this class was generated from the following file: