Audacity 3.2.0
|
Base class for XMLFileWriter and XMLStringWriter that provides the general functionality for creating XML in UTF8 encoding. More...
#include <XMLWriter.h>
Public Member Functions | |
XMLWriter () | |
virtual | ~XMLWriter () |
virtual void | StartTag (const wxString &name) |
virtual void | EndTag (const wxString &name) |
void | WriteAttr (const wxString &name, const Identifier &value) |
virtual void | WriteAttr (const wxString &name, const wxString &value) |
virtual void | WriteAttr (const wxString &name, const wxChar *value) |
virtual void | WriteAttr (const wxString &name, int value) |
virtual void | WriteAttr (const wxString &name, bool value) |
virtual void | WriteAttr (const wxString &name, long value) |
virtual void | WriteAttr (const wxString &name, long long value) |
virtual void | WriteAttr (const wxString &name, size_t value) |
virtual void | WriteAttr (const wxString &name, float value, int digits=-1) |
virtual void | WriteAttr (const wxString &name, double value, int digits=-1) |
virtual void | WriteData (const wxString &value) |
virtual void | WriteSubTree (const wxString &value) |
virtual void | Write (const wxString &data)=0 |
Protected Attributes | |
bool | mInTag |
int | mDepth |
wxArrayString | mTagstack |
std::vector< int > | mHasKids |
Static Private Member Functions | |
static wxString | XMLEsc (const wxString &s) |
Base class for XMLFileWriter and XMLStringWriter that provides the general functionality for creating XML in UTF8 encoding.
Definition at line 25 of file XMLWriter.h.
XMLWriter::XMLWriter | ( | ) |
|
virtual |
Definition at line 75 of file XMLWriter.cpp.
|
virtual |
Reimplemented in ProjectSerializer.
Definition at line 102 of file XMLWriter.cpp.
References mDepth, mHasKids, mInTag, mTagstack, name, Write(), and wxT().
Referenced by ConvertLegacyTrack(), XMLFileWriter::PreCommit(), WaveTrack::WriteOneXML(), PluginDescriptor::WriteXML(), detail::PluginValidationResult::WriteXML(), RealtimeEffectState::WriteXML(), RealtimeEffectList::WriteXML(), and ProjectFileIO::WriteXML().
|
virtual |
Reimplemented in ProjectSerializer.
Definition at line 79 of file XMLWriter.cpp.
References mDepth, mHasKids, mInTag, mTagstack, name, Write(), and wxT().
Referenced by ConvertLegacyTrack(), WaveTrack::WriteOneXML(), PluginDescriptor::WriteXML(), detail::PluginValidationResult::WriteXML(), RealtimeEffectState::WriteXML(), RealtimeEffectList::WriteXML(), and ProjectFileIO::WriteXML().
|
pure virtual |
Implemented in ProjectSerializer, XMLFileWriter, and XMLStringWriter.
Referenced by EndTag(), StartTag(), WriteAttr(), WriteData(), WriteSubTree(), and ProjectFileIO::WriteXMLHeader().
|
virtual |
Reimplemented in ProjectSerializer.
Definition at line 154 of file XMLWriter.cpp.
References name, Write(), and wxT().
|
inline |
Definition at line 36 of file XMLWriter.h.
References Identifier::GET(), and name.
Referenced by ConvertLegacyTrack(), SqliteSampleBlock::SaveXML(), WriteAttr(), Track::WriteCommonXMLAttributes(), WaveTrack::WriteOneXML(), PluginDescriptor::WriteXML(), detail::PluginValidationResult::WriteXML(), RealtimeEffectState::WriteXML(), RealtimeEffectList::WriteXML(), NoteTrackRange::WriteXML(), ProjectFileIO::WriteXML(), WaveformAppearance::WriteXMLAttributes(), WaveColorAttachment::WriteXMLAttributes(), ChannelView::WriteXMLAttributes(), and PlayableTrack::WriteXMLAttributes().
|
virtual |
Reimplemented in ProjectSerializer.
Definition at line 140 of file XMLWriter.cpp.
References name, and WriteAttr().
|
virtual |
Reimplemented in ProjectSerializer.
Definition at line 132 of file XMLWriter.cpp.
References name, Write(), wxT(), and XMLEsc().
|
virtual |
Reimplemented in ProjectSerializer.
Definition at line 194 of file XMLWriter.cpp.
References name, Internat::ToString(), Write(), and wxT().
|
virtual |
Reimplemented in ProjectSerializer.
Definition at line 186 of file XMLWriter.cpp.
References name, Internat::ToString(), Write(), and wxT().
|
virtual |
Reimplemented in ProjectSerializer.
Definition at line 146 of file XMLWriter.cpp.
References name, Write(), and wxT().
|
virtual |
Reimplemented in ProjectSerializer.
Definition at line 170 of file XMLWriter.cpp.
References name, Write(), and wxT().
|
virtual |
Reimplemented in ProjectSerializer.
Definition at line 162 of file XMLWriter.cpp.
References name, Write(), and wxT().
|
virtual |
Reimplemented in ProjectSerializer.
Definition at line 178 of file XMLWriter.cpp.
References name, Write(), and wxT().
|
virtual |
|
virtual |
|
staticprivate |
Definition at line 227 of file XMLWriter.cpp.
References charXMLCompatiblity, MAX_HIGH_SURROGATE, MAX_LOW_SURROGATE, MIN_HIGH_SURROGATE, MIN_LOW_SURROGATE, NONCHARACTER_FFFE, NONCHARACTER_FFFF, and wxT().
Referenced by WriteAttr(), and WriteData().
|
protected |
Definition at line 66 of file XMLWriter.h.
Referenced by EndTag(), StartTag(), WriteData(), and XMLWriter().
|
protected |
Definition at line 68 of file XMLWriter.h.
Referenced by EndTag(), StartTag(), WriteSubTree(), and XMLWriter().
|
protected |
Definition at line 65 of file XMLWriter.h.
Referenced by EndTag(), StartTag(), WriteSubTree(), and XMLWriter().
|
protected |
Definition at line 67 of file XMLWriter.h.
Referenced by EndTag(), XMLFileWriter::PreCommit(), and StartTag().