userver: formats::json::parser::BaseParser Class Reference
Loading...
Searching...
No Matches
formats::json::parser::BaseParser Class Referenceabstract

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

Detailed Description

Base class for SAX parser.

Definition at line 12 of file base_parser.hpp.

+ Inheritance diagram for formats::json::parser::BaseParser:

Public Member Functions

virtual void Null ()
 
virtual void Bool (bool)
 
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 StartArray ()
 
virtual void EndArray ()
 
virtual void EndObject (size_t)
 
virtual void EndArray (size_t)
 
void SetState (ParserState &state)
 
virtual std::string GetPathItem () const =0
 

Protected Member Functions

void Throw (const std::string &found)
 
virtual std::string Expected () const =0
 

Protected Attributes

ParserStateparser_state_ {nullptr}
 

Member Function Documentation

◆ Bool()

virtual void formats::json::parser::BaseParser::Bool ( bool )
inlinevirtual

Definition at line 17 of file base_parser.hpp.

◆ Double()

virtual void formats::json::parser::BaseParser::Double ( double )
inlinevirtual

Definition at line 20 of file base_parser.hpp.

◆ EndArray() [1/2]

virtual void formats::json::parser::BaseParser::EndArray ( )
inlinevirtual

Definition at line 26 of file base_parser.hpp.

◆ EndArray() [2/2]

virtual void formats::json::parser::BaseParser::EndArray ( size_t )
inlinevirtual

Definition at line 30 of file base_parser.hpp.

◆ EndObject() [1/2]

virtual void formats::json::parser::BaseParser::EndObject ( )
inlinevirtual

Definition at line 24 of file base_parser.hpp.

◆ EndObject() [2/2]

virtual void formats::json::parser::BaseParser::EndObject ( size_t )
inlinevirtual

Definition at line 29 of file base_parser.hpp.

◆ Int64()

virtual void formats::json::parser::BaseParser::Int64 ( int64_t )
inlinevirtual

Definition at line 18 of file base_parser.hpp.

◆ Key()

virtual void formats::json::parser::BaseParser::Key ( std::string_view key)
inlinevirtual

Definition at line 23 of file base_parser.hpp.

◆ Null()

virtual void formats::json::parser::BaseParser::Null ( )
inlinevirtual

Definition at line 16 of file base_parser.hpp.

◆ SetState()

void formats::json::parser::BaseParser::SetState ( ParserState & state)
inline

Definition at line 32 of file base_parser.hpp.

◆ StartArray()

virtual void formats::json::parser::BaseParser::StartArray ( )
inlinevirtual

Definition at line 25 of file base_parser.hpp.

◆ StartObject()

virtual void formats::json::parser::BaseParser::StartObject ( )
inlinevirtual

Definition at line 22 of file base_parser.hpp.

◆ String()

virtual void formats::json::parser::BaseParser::String ( std::string_view )
inlinevirtual

Definition at line 21 of file base_parser.hpp.

◆ Throw()

void formats::json::parser::BaseParser::Throw ( const std::string & found)
inlineprotected

Definition at line 37 of file base_parser.hpp.

◆ Uint64()

virtual void formats::json::parser::BaseParser::Uint64 ( uint64_t )
inlinevirtual

Definition at line 19 of file base_parser.hpp.

Member Data Documentation

◆ parser_state_

ParserState* formats::json::parser::BaseParser::parser_state_ {nullptr}
protected

Definition at line 44 of file base_parser.hpp.


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