Arduino DLNA Server
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
tiny_dlna::XMLDeviceParser Class Reference

Parses an DLNA device xml string to fill the DLNADevice data structure. More...

#include <XMLDeviceParser.h>

Collaboration diagram for tiny_dlna::XMLDeviceParser:
Collaboration graph
[legend]

Public Member Functions

void parse (DLNADevice &result, const char *xmlStr)
 

Protected Member Functions

const char * substring (char *in, int pos, int end)
 extract string, add to string repository and return repository string More...
 
void parseVersion (DLNADevice &result)
 
void parseDevice (DLNADevice &result)
 
int parseStr (const char *name, const char *&result)
 
int parseInt (int pos, const char *name, int &result)
 
int parseStr (int pos, const char *name, const char *&result)
 
void parseIcons (DLNADevice &device)
 
int parseIcon (DLNADevice &device, int pos)
 
void parseServices ()
 
int parseService (int pos)
 

Protected Attributes

StrView str
 
DLNADevicep_device = nullptr
 

Detailed Description

Parses an DLNA device xml string to fill the DLNADevice data structure.

Author
Phil Schatzmann

Member Function Documentation

◆ parse()

void tiny_dlna::XMLDeviceParser::parse ( DLNADevice result,
const char *  xmlStr 
)
inline

◆ parseDevice()

void tiny_dlna::XMLDeviceParser::parseDevice ( DLNADevice result)
inlineprotected

◆ parseIcon()

int tiny_dlna::XMLDeviceParser::parseIcon ( DLNADevice device,
int  pos 
)
inlineprotected

◆ parseIcons()

void tiny_dlna::XMLDeviceParser::parseIcons ( DLNADevice device)
inlineprotected

◆ parseInt()

int tiny_dlna::XMLDeviceParser::parseInt ( int  pos,
const char *  name,
int &  result 
)
inlineprotected

◆ parseService()

int tiny_dlna::XMLDeviceParser::parseService ( int  pos)
inlineprotected

◆ parseServices()

void tiny_dlna::XMLDeviceParser::parseServices ( )
inlineprotected

◆ parseStr() [1/2]

int tiny_dlna::XMLDeviceParser::parseStr ( const char *  name,
const char *&  result 
)
inlineprotected

◆ parseStr() [2/2]

int tiny_dlna::XMLDeviceParser::parseStr ( int  pos,
const char *  name,
const char *&  result 
)
inlineprotected

◆ parseVersion()

void tiny_dlna::XMLDeviceParser::parseVersion ( DLNADevice result)
inlineprotected

◆ substring()

const char* tiny_dlna::XMLDeviceParser::substring ( char *  in,
int  pos,
int  end 
)
inlineprotected

extract string, add to string repository and return repository string

Member Data Documentation

◆ p_device

DLNADevice* tiny_dlna::XMLDeviceParser::p_device = nullptr
protected

◆ str

StrView tiny_dlna::XMLDeviceParser::str
protected

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