Audacity 3.2.0
Public Member Functions | List of all members
XMLTagHandler Class Referenceabstract

This class is an interface which should be implemented by classes which wish to be able to load and save themselves using XML files. More...

#include <XMLTagHandler.h>

Inheritance diagram for XMLTagHandler:
[legend]

Public Member Functions

 XMLTagHandler ()
 
virtual ~XMLTagHandler ()
 
virtual bool HandleXMLTag (const std::string_view &tag, const AttributesList &attrs)=0
 
virtual void HandleXMLEndTag (const std::string_view &WXUNUSED(tag))
 
virtual void HandleXMLContent (const std::string_view &WXUNUSED(content))
 
virtual XMLTagHandlerHandleXMLChild (const std::string_view &tag)=0
 
void ReadXMLEndTag (const char *tag)
 
void ReadXMLContent (const char *s, int len)
 
XMLTagHandlerReadXMLChild (const char *tag)
 

Detailed Description

This class is an interface which should be implemented by classes which wish to be able to load and save themselves using XML files.

Definition at line 42 of file XMLTagHandler.h.

Constructor & Destructor Documentation

◆ XMLTagHandler()

XMLTagHandler::XMLTagHandler ( )
inline

Definition at line 44 of file XMLTagHandler.h.

44{};

◆ ~XMLTagHandler()

virtual XMLTagHandler::~XMLTagHandler ( )
inlinevirtual

Definition at line 45 of file XMLTagHandler.h.

45{};

Member Function Documentation

◆ HandleXMLChild()

virtual XMLTagHandler * XMLTagHandler::HandleXMLChild ( const std::string_view &  tag)
pure virtual

◆ HandleXMLContent()

virtual void XMLTagHandler::HandleXMLContent ( const std::string_view &  WXUNUSEDcontent)
inlinevirtual

Definition at line 64 of file XMLTagHandler.h.

64{}

Referenced by ReadXMLContent().

Here is the caller graph for this function:

◆ HandleXMLEndTag()

virtual void XMLTagHandler::HandleXMLEndTag ( const std::string_view &  WXUNUSEDtag)
inlinevirtual

Definition at line 59 of file XMLTagHandler.h.

59{}

Referenced by AUPImportFileHandle::HandleXMLEndTag(), and ReadXMLEndTag().

Here is the caller graph for this function:

◆ HandleXMLTag()

virtual bool XMLTagHandler::HandleXMLTag ( const std::string_view &  tag,
const AttributesList attrs 
)
pure virtual

◆ ReadXMLChild()

XMLTagHandler * XMLTagHandler::ReadXMLChild ( const char *  tag)

Definition at line 101 of file XMLTagHandler.cpp.

102{
103 return HandleXMLChild(tag);
104}
virtual XMLTagHandler * HandleXMLChild(const std::string_view &tag)=0

References HandleXMLChild().

Here is the call graph for this function:

◆ ReadXMLContent()

void XMLTagHandler::ReadXMLContent ( const char *  s,
int  len 
)

Definition at line 96 of file XMLTagHandler.cpp.

97{
98 HandleXMLContent(std::string_view(s, len));
99}
virtual void HandleXMLContent(const std::string_view &WXUNUSED(content))
Definition: XMLTagHandler.h:64

References HandleXMLContent().

Here is the call graph for this function:

◆ ReadXMLEndTag()

void XMLTagHandler::ReadXMLEndTag ( const char *  tag)

Definition at line 91 of file XMLTagHandler.cpp.

92{
93 HandleXMLEndTag(tag);
94}
virtual void HandleXMLEndTag(const std::string_view &WXUNUSED(tag))
Definition: XMLTagHandler.h:59

References HandleXMLEndTag().

Here is the call graph for this function:

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