Audacity 3.2.0
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:
[legend]
Collaboration diagram for XMLStringWriter:
[legend]

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)
 
virtual void Write (const wxString &data)=0
 

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.

XMLStringWriter

Definition at line 140 of file XMLWriter.h.

Constructor & Destructor Documentation

◆ XMLStringWriter()

XMLStringWriter::XMLStringWriter ( size_t  initialSize = 0)

XMLStringWriter class

Definition at line 419 of file XMLWriter.cpp.

420{
421 if (initialSize)
422 {
423 reserve(initialSize);
424 }
425}

◆ ~XMLStringWriter()

XMLStringWriter::~XMLStringWriter ( )
virtual

Definition at line 427 of file XMLWriter.cpp.

428{
429}

Member Function Documentation

◆ Write()

void XMLStringWriter::Write ( const wxString &  data)
overridevirtual

Implements XMLWriter.

Definition at line 431 of file XMLWriter.cpp.

432{
433 Append(data);
434}
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;})

References Append().

Here is the call graph for this function:

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