Audacity  3.0.3
Public Member Functions | List of all members
XMLStringWriter Class Referencefinal

Wrapper to output XML data to strings. More...

#include <XMLWriter.h>

Inheritance diagram for XMLStringWriter:
Collaboration diagram for XMLStringWriter:

Public Member Functions

 XMLStringWriter (size_t initialSize=0)
virtual ~XMLStringWriter ()
void Write (const wxString &data) override
- Public Member Functions inherited from XMLWriter
 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)
wxString XMLEsc (const wxString &s)

Additional Inherited Members

- Protected Attributes inherited from XMLWriter
bool mInTag
int mDepth
wxArrayString mTagstack
std::vector< int > mHasKids

Detailed Description

Wrapper to output XML data to strings.


Definition at line 136 of file XMLWriter.h.

Constructor & Destructor Documentation

◆ XMLStringWriter()

XMLStringWriter::XMLStringWriter ( size_t  initialSize = 0)

XMLStringWriter class

Definition at line 416 of file XMLWriter.cpp.

417 {
418  if (initialSize)
419  {
420  reserve(initialSize);
421  }
422 }

◆ ~XMLStringWriter()

XMLStringWriter::~XMLStringWriter ( )

Definition at line 424 of file XMLWriter.cpp.

425 {
426 }

Member Function Documentation

◆ Write()

void XMLStringWriter::Write ( const wxString &  data)

Implements XMLWriter.

Definition at line 428 of file XMLWriter.cpp.

429 {
430  Append(data);
431 }

References Append().

Referenced by ProjectSerializer::Decode().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files:
Append([](My &table) -> Registry::BaseItemPtr { if(WaveTrackSubViews::slots() > 1) return std::make_unique< Entry >("MultiView", Entry::CheckItem, OnMultiViewID, XXO("&Multi-view"), POPUP_MENU_FN(OnMultiView), table, [](PopupMenuHandler &handler, wxMenu &menu, int id){ auto &table=static_cast< WaveTrackMenuTable & >(handler);auto &track=table.FindWaveTrack();const auto &view=WaveTrackView::Get(track);menu.Check(id, view.GetMultiView());});else return nullptr;})