Audacity 3.2.0
|
Reads a file and passes the results through an XMLTagHandler. More...
#include <XMLFileReader.h>
Public Member Functions | |
XMLFileReader () | |
~XMLFileReader () | |
bool | Parse (XMLTagHandler *baseHandler, const FilePath &fname) |
bool | ParseString (XMLTagHandler *baseHandler, const wxString &xmldata) |
bool | ParseMemoryStream (XMLTagHandler *baseHandler, const MemoryStream &xmldata) |
const TranslatableString & | GetErrorStr () const |
const TranslatableString & | GetLibraryErrorStr () const |
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 Member Functions | |
bool | ParseBuffer (XMLTagHandler *baseHandler, const char *buffer, size_t len, bool isFinal) |
Private Attributes | |
XML_Parser | mParser |
XMLTagHandler * | mBaseHandler |
Handlers | mHandler |
TranslatableString | mErrorStr |
TranslatableString | mLibraryErrorStr |
AttributesList | mCurrentTagAttributes |
Reads a file and passes the results through an XMLTagHandler.
Definition at line 19 of file XMLFileReader.h.
|
private |
Definition at line 49 of file XMLFileReader.h.
XMLFileReader::XMLFileReader | ( | ) |
Definition at line 26 of file XMLFileReader.cpp.
References charHandler(), endElement(), mBaseHandler, mHandler, mParser, and startElement().
XMLFileReader::~XMLFileReader | ( | ) |
Definition at line 36 of file XMLFileReader.cpp.
References mParser.
|
static |
Definition at line 242 of file XMLFileReader.cpp.
References audacity::cloud::audiocom::anonymous_namespace{AuthorizationHandler.cpp}::handler, and mHandler.
Referenced by XMLFileReader().
|
static |
Definition at line 230 of file XMLFileReader.cpp.
References audacity::cloud::audiocom::anonymous_namespace{AuthorizationHandler.cpp}::handler, mHandler, and name.
Referenced by XMLFileReader().
const TranslatableString & XMLFileReader::GetErrorStr | ( | ) | const |
Definition at line 182 of file XMLFileReader.cpp.
References mErrorStr.
Referenced by AUPImportFileHandle::Import(), EQCurveReader::LoadCurves(), VSTWrapper::LoadXML(), KeyConfigPrefs::OnImport(), and TagsEditorDialog::OnLoad().
const TranslatableString & XMLFileReader::GetLibraryErrorStr | ( | ) | const |
bool XMLFileReader::Parse | ( | XMLTagHandler * | baseHandler, |
const FilePath & | fname | ||
) |
Definition at line 41 of file XMLFileReader.cpp.
References mBaseHandler, mErrorStr, mLibraryErrorStr, mParser, Verbatim(), wxT(), and XO().
Referenced by FFmpegPresets::FFmpegPresets(), AUPImportFileHandle::Import(), FFmpegPresets::ImportPresets(), EQCurveReader::LoadCurves(), anonymous_namespace{MenuHelper.cpp}::LoadEffectsMenuGroups(), VSTWrapper::LoadXML(), KeyConfigPrefs::OnImport(), TagsEditorDialog::OnLoad(), and EQCurveReader::UpdateDefaultCurves().
|
private |
Definition at line 251 of file XMLFileReader.cpp.
References TranslatableString::Debug(), mErrorStr, mLibraryErrorStr, mParser, Verbatim(), wxT(), and XO().
Referenced by ParseMemoryStream(), and ParseString().
bool XMLFileReader::ParseMemoryStream | ( | XMLTagHandler * | baseHandler, |
const MemoryStream & | xmldata | ||
) |
Definition at line 159 of file XMLFileReader.cpp.
References mBaseHandler, mErrorStr, ParseBuffer(), and XO().
bool XMLFileReader::ParseString | ( | XMLTagHandler * | baseHandler, |
const wxString & | xmldata | ||
) |
Definition at line 135 of file XMLFileReader.cpp.
References mBaseHandler, mErrorStr, ParseBuffer(), and XO().
Referenced by AsyncPluginValidator::Impl::OnDataAvailable(), and UpdateDataParser::Parse().
|
static |
Definition at line 193 of file XMLFileReader.cpp.
References audacity::cloud::audiocom::anonymous_namespace{AuthorizationHandler.cpp}::handler, mBaseHandler, mCurrentTagAttributes, mHandler, and name.
Referenced by XMLFileReader().
|
private |
Definition at line 48 of file XMLFileReader.h.
Referenced by Parse(), ParseMemoryStream(), ParseString(), startElement(), and XMLFileReader().
|
private |
Definition at line 55 of file XMLFileReader.h.
Referenced by startElement().
|
private |
Definition at line 51 of file XMLFileReader.h.
Referenced by GetErrorStr(), Parse(), ParseBuffer(), ParseMemoryStream(), and ParseString().
|
private |
Definition at line 50 of file XMLFileReader.h.
Referenced by charHandler(), endElement(), startElement(), and XMLFileReader().
|
private |
Definition at line 52 of file XMLFileReader.h.
Referenced by GetLibraryErrorStr(), Parse(), and ParseBuffer().
|
private |
Definition at line 47 of file XMLFileReader.h.
Referenced by Parse(), ParseBuffer(), XMLFileReader(), and ~XMLFileReader().