Incremental XML device parser using XMLParserPrint.
More...
#include <XMLDeviceParser.h>
Incremental XML device parser using XMLParserPrint.
This parser consumes parse events from an XMLParserPrint instance and fills a DLNADeviceInfo structure incrementally. It keeps internal state across multiple calls so callers can feed XML data in chunks.
◆ XMLDeviceParser()
| tiny_dlna::XMLDeviceParser::XMLDeviceParser |
( |
DLNADeviceInfo & |
result | ) |
|
|
inline |
◆ begin()
| void tiny_dlna::XMLDeviceParser::begin |
( |
| ) |
|
|
inline |
◆ end()
Finalize parser state and flush any pending objects.
◆ parse()
| void tiny_dlna::XMLDeviceParser::parse |
( |
const uint8_t * |
buffer, |
|
|
size_t |
len |
|
) |
| |
|
inline |
Parse available nodes from xml_parser and populate result. Caller may call this repeatedly as more data is written into xml_parser.
◆ resetState()
| void tiny_dlna::XMLDeviceParser::resetState |
( |
| ) |
|
|
inlineprotected |
◆ cur_icon
| Icon tiny_dlna::XMLDeviceParser::cur_icon |
|
protected |
◆ cur_service
◆ in_icon
| bool tiny_dlna::XMLDeviceParser::in_icon = false |
|
protected |
◆ in_service
| bool tiny_dlna::XMLDeviceParser::in_service = false |
|
protected |
◆ p_device
◆ start_time
| uint64_t tiny_dlna::XMLDeviceParser::start_time = 0 |
|
protected |
◆ xml_parser
The documentation for this class was generated from the following file: