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:
[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)
 
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.

XMLStringWriter

Definition at line 136 of file XMLWriter.h.

Constructor & Destructor Documentation

◆ XMLStringWriter()

XMLStringWriter::XMLStringWriter ( size_t  initialSize = 0)

XMLStringWriter class

Definition at line 415 of file XMLWriter.cpp.

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

◆ ~XMLStringWriter()

XMLStringWriter::~XMLStringWriter ( )
virtual

Definition at line 423 of file XMLWriter.cpp.

424 {
425 }

Member Function Documentation

◆ Write()

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

Implements XMLWriter.

Definition at line 427 of file XMLWriter.cpp.

428 {
429  Append(data);
430 }

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
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;})