Arduino DLNA Server
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
tiny_dlna::XMLParserPrint Class Reference

Helper that implements a Print interface to accumulate XML data and then parse it using XMLParser. More...

#include <XMLParserPrint.h>

Inheritance diagram for tiny_dlna::XMLParserPrint:
Inheritance graph
[legend]
Collaboration diagram for tiny_dlna::XMLParserPrint:
Collaboration graph
[legend]

Classes

struct  CBRef
 

Public Member Functions

 XMLParserPrint (int reserve=80)
 
size_t write (uint8_t ch) override
 
size_t write (const uint8_t *data, size_t size) override
 
void setExpandEncoded (bool flag)
 Forward expand-entities setting to the underlying XMLParser.
 
bool parse (Str &outNodeName, Vector< Str > &outPath, Str &outText, Str &outAttributes)
 
void reset ()
 
const char * c_str ()
 
size_t length ()
 

Static Protected Member Functions

static void wrapperCallback (Str &nodeName, Vector< Str > &path, Str &text, Str &attributes, int start, int len, void *ref)
 

Protected Attributes

StrPrint buffer
 
XMLParser p
 
struct tiny_dlna::XMLParserPrint::CBRef cbref
 

Detailed Description

Helper that implements a Print interface to accumulate XML data and then parse it using XMLParser.

Constructor & Destructor Documentation

◆ XMLParserPrint()

tiny_dlna::XMLParserPrint::XMLParserPrint ( int  reserve = 80)
inline

Member Function Documentation

◆ c_str()

const char * tiny_dlna::XMLParserPrint::c_str ( )
inline

◆ length()

size_t tiny_dlna::XMLParserPrint::length ( )
inline

◆ parse()

bool tiny_dlna::XMLParserPrint::parse ( Str outNodeName,
Vector< Str > &  outPath,
Str outText,
Str outAttributes 
)
inline

◆ reset()

void tiny_dlna::XMLParserPrint::reset ( )
inline

◆ setExpandEncoded()

void tiny_dlna::XMLParserPrint::setExpandEncoded ( bool  flag)
inline

Forward expand-entities setting to the underlying XMLParser.

◆ wrapperCallback()

static void tiny_dlna::XMLParserPrint::wrapperCallback ( Str nodeName,
Vector< Str > &  path,
Str text,
Str attributes,
int  start,
int  len,
void *  ref 
)
inlinestaticprotected

◆ write() [1/2]

size_t tiny_dlna::XMLParserPrint::write ( const uint8_t *  data,
size_t  size 
)
inlineoverride

◆ write() [2/2]

size_t tiny_dlna::XMLParserPrint::write ( uint8_t  ch)
inlineoverride

Member Data Documentation

◆ buffer

StrPrint tiny_dlna::XMLParserPrint::buffer
protected

◆ cbref

struct tiny_dlna::XMLParserPrint::CBRef tiny_dlna::XMLParserPrint::cbref
protected

◆ p

XMLParser tiny_dlna::XMLParserPrint::p
protected

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