Event sink for non-owning SAX parsing.
More...
#include <pjson_parser.h>
|
| virtual | ~SaxHandler () |
| | Enables destruction through a handler base pointer.
|
| |
| virtual bool | onNull () |
| | Receives null; return false to cancel.
|
| |
| virtual bool | onBool (bool aValue) |
| | Receives a boolean; return false to cancel.
|
| |
| virtual bool | onInt (int64_t aValue) |
| | Receives a signed integer; return false to cancel.
|
| |
| virtual bool | onUInt (uint64_t aValue) |
| | Receives an unsigned integer above the signed range; return false to cancel.
|
| |
| virtual bool | onDouble (double aValue) |
| | Receives a floating-point number; return false to cancel.
|
| |
| virtual bool | onString (const std::string &aValue) |
| | Receives a borrowed decoded string; return false to cancel.
|
| |
| virtual bool | onStartArray () |
| | Marks the beginning of an array; return false to cancel.
|
| |
| virtual bool | onEndArray () |
| | Marks the end of an array; return false to cancel.
|
| |
| virtual bool | onStartObject () |
| | Marks the beginning of an object; return false to cancel.
|
| |
| virtual bool | onKey (const std::string &aKey) |
| | Receives a borrowed decoded key; return false to cancel.
|
| |
| virtual bool | onEndObject () |
| | Marks the end of an object; return false to cancel.
|
| |
Event sink for non-owning SAX parsing.
Definition at line 69 of file pjson_parser.h.
◆ ~SaxHandler()
| virtual ByteDance::pJsonParser::SaxHandler::~SaxHandler |
( |
| ) |
|
|
virtual |
Enables destruction through a handler base pointer.
◆ onBool()
| virtual bool ByteDance::pJsonParser::SaxHandler::onBool |
( |
bool |
aValue | ) |
|
|
virtual |
Receives a boolean; return false to cancel.
◆ onDouble()
| virtual bool ByteDance::pJsonParser::SaxHandler::onDouble |
( |
double |
aValue | ) |
|
|
virtual |
Receives a floating-point number; return false to cancel.
◆ onEndArray()
| virtual bool ByteDance::pJsonParser::SaxHandler::onEndArray |
( |
| ) |
|
|
virtual |
Marks the end of an array; return false to cancel.
◆ onEndObject()
| virtual bool ByteDance::pJsonParser::SaxHandler::onEndObject |
( |
| ) |
|
|
virtual |
Marks the end of an object; return false to cancel.
◆ onInt()
| virtual bool ByteDance::pJsonParser::SaxHandler::onInt |
( |
int64_t |
aValue | ) |
|
|
virtual |
Receives a signed integer; return false to cancel.
◆ onKey()
| virtual bool ByteDance::pJsonParser::SaxHandler::onKey |
( |
const std::string & |
aKey | ) |
|
|
virtual |
Receives a borrowed decoded key; return false to cancel.
◆ onNull()
| virtual bool ByteDance::pJsonParser::SaxHandler::onNull |
( |
| ) |
|
|
virtual |
Receives null; return false to cancel.
◆ onStartArray()
| virtual bool ByteDance::pJsonParser::SaxHandler::onStartArray |
( |
| ) |
|
|
virtual |
Marks the beginning of an array; return false to cancel.
◆ onStartObject()
| virtual bool ByteDance::pJsonParser::SaxHandler::onStartObject |
( |
| ) |
|
|
virtual |
Marks the beginning of an object; return false to cancel.
◆ onString()
| virtual bool ByteDance::pJsonParser::SaxHandler::onString |
( |
const std::string & |
aValue | ) |
|
|
virtual |
Receives a borrowed decoded string; return false to cancel.
◆ onUInt()
| virtual bool ByteDance::pJsonParser::SaxHandler::onUInt |
( |
uint64_t |
aValue | ) |
|
|
virtual |
Receives an unsigned integer above the signed range; return false to cancel.
The documentation for this struct was generated from the following file: