Audacity  2.2.0
XMLFileReader Class Referencefinal

Reads a file and passes the results through an XMLTagHandler. More...

#include <XMLFileReader.h>

Public Member Functions

 XMLFileReader ()
 
 ~XMLFileReader ()
 
bool Parse (XMLTagHandler *baseHandler, const wxString &fname)
 
wxString GetErrorStr ()
 

Static Public Member Functions

static void startElement (void *userData, const char *name, const char **atts)
 
static void endElement (void *userData, const char *name)
 
static void charHandler (void *userData, const char *s, int len)
 

Private Types

using Handlers = std::vector< XMLTagHandler * >
 

Private Attributes

XML_Parser mParser
 
XMLTagHandlermBaseHandler
 
Handlers mHandler
 
wxString mErrorStr
 

Detailed Description

Reads a file and passes the results through an XMLTagHandler.

Member Typedef Documentation

using XMLFileReader::Handlers = std::vector<XMLTagHandler*>
private

Constructor & Destructor Documentation

XMLFileReader::XMLFileReader ( )
XMLFileReader::~XMLFileReader ( )

References mParser.

Member Function Documentation

void XMLFileReader::charHandler ( void *  userData,
const char *  s,
int  len 
)
static

References mHandler.

Referenced by XMLFileReader().

void XMLFileReader::endElement ( void *  userData,
const char *  name 
)
static

References mHandler.

Referenced by XMLFileReader().

wxString XMLFileReader::GetErrorStr ( )
bool XMLFileReader::Parse ( XMLTagHandler baseHandler,
const wxString &  fname 
)
void XMLFileReader::startElement ( void *  userData,
const char *  name,
const char **  atts 
)
static

References mBaseHandler, and mHandler.

Referenced by XMLFileReader().

Member Data Documentation

XMLTagHandler* XMLFileReader::mBaseHandler
private

Referenced by Parse(), startElement(), and XMLFileReader().

wxString XMLFileReader::mErrorStr
private

Referenced by GetErrorStr(), Parse(), and XMLFileReader().

Handlers XMLFileReader::mHandler
private
XML_Parser XMLFileReader::mParser
private

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