Audacity  2.2.0
XMLWriter Class Referenceabstract

Base class for XMLFileWriter and XMLStringWriter that provides the general functionality for creating XML in UTF8 encoding. More...

#include <XMLWriter.h>

Inheritance diagram for XMLWriter:
AutoSaveFile XMLFileWriter XMLStringWriter

Public Member Functions

 XMLWriter ()
 
virtual ~XMLWriter ()
 
virtual void StartTag (const wxString &name)
 
virtual void EndTag (const wxString &name)
 
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
 
wxString XMLEsc (const wxString &s)
 

Protected Attributes

bool mInTag
 
int mDepth
 
wxArrayString mTagstack
 
wxArrayInt mHasKids
 

Detailed Description

Base class for XMLFileWriter and XMLStringWriter that provides the general functionality for creating XML in UTF8 encoding.

XMLWriter

Constructor & Destructor Documentation

XMLWriter::XMLWriter ( )

XMLWriter base class

References mDepth, mHasKids, and mInTag.

XMLWriter::~XMLWriter ( )
virtual

Member Function Documentation

virtual void XMLWriter::Write ( const wxString &  data)
pure virtual
void XMLWriter::WriteAttr ( const wxString &  name,
const wxChar *  value 
)
virtual

Reimplemented in AutoSaveFile.

References WriteAttr().

void XMLWriter::WriteAttr ( const wxString &  name,
int  value 
)
virtual

Reimplemented in AutoSaveFile.

References Write().

void XMLWriter::WriteAttr ( const wxString &  name,
bool  value 
)
virtual

Reimplemented in AutoSaveFile.

References Write().

void XMLWriter::WriteAttr ( const wxString &  name,
long  value 
)
virtual

Reimplemented in AutoSaveFile.

References Write().

void XMLWriter::WriteAttr ( const wxString &  name,
long long  value 
)
virtual

Reimplemented in AutoSaveFile.

References Write().

void XMLWriter::WriteAttr ( const wxString &  name,
size_t  value 
)
virtual

Reimplemented in AutoSaveFile.

References Write().

void XMLWriter::WriteAttr ( const wxString &  name,
float  value,
int  digits = -1 
)
virtual

Reimplemented in AutoSaveFile.

References Internat::ToString(), and Write().

void XMLWriter::WriteAttr ( const wxString &  name,
double  value,
int  digits = -1 
)
virtual

Reimplemented in AutoSaveFile.

References Internat::ToString(), and Write().

void XMLWriter::WriteData ( const wxString &  value)
virtual

Reimplemented in AutoSaveFile.

References mDepth, Write(), and XMLEsc().

void XMLWriter::WriteSubTree ( const wxString &  value)
virtual

References mHasKids, mInTag, and Write().

wxString XMLWriter::XMLEsc ( const wxString &  s)

References charXMLCompatiblity.

Referenced by WriteAttr(), and WriteData().

Member Data Documentation

int XMLWriter::mDepth
protected

Referenced by EndTag(), StartTag(), WriteData(), and XMLWriter().

wxArrayInt XMLWriter::mHasKids
protected
bool XMLWriter::mInTag
protected
wxArrayString XMLWriter::mTagstack
protected

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