#include <XspfExtensionReader.h>
Public Member Functions | |
XspfExtensionReader (XspfReader *reader) | |
XspfExtensionReader (XspfExtensionReader const &source) | |
XspfExtensionReader & | operator= (XspfExtensionReader const &source) |
virtual | ~XspfExtensionReader () |
Protected Member Functions | |
bool | handleError (int code, XML_Char const *text) |
bool | handleError (int code, XML_Char const *format, XML_Char const *param) |
XspfStack< unsigned int > & | getElementStack () const |
XspfStack< std::basic_string < XML_Char > > & | getBaseUriStack () const |
bool | handleXmlBaseAttribute (XML_Char const *xmlBase) |
virtual bool | handleExtensionStart (XML_Char const *fullName, XML_Char const **atts)=0 |
virtual bool | handleExtensionEnd (XML_Char const *fullName)=0 |
virtual bool | handleExtensionCharacters (XML_Char const *s, int len)=0 |
virtual XspfExtension * | wrap ()=0 |
virtual XspfExtensionReader * | createBrother (XspfReader *reader) const =0 |
Friends | |
class | XspfReader |
class | XspfReaderPrivate |
class | XspfExtensionReaderFactory |
class | XspfExtensionReaderFactoryPrivate |
Definition at line 66 of file XspfExtensionReader.h.
XspfExtensionReader | ( | XspfReader * | reader | ) |
XspfExtensionReader | ( | XspfExtensionReader const & | source | ) |
Copy constructor.
source | Source to copy from |
virtual ~XspfExtensionReader | ( | ) | [virtual] |
Destroys this XspfExtensionReader object and deletes all memory associated with it.
virtual XspfExtensionReader* createBrother | ( | XspfReader * | reader | ) | const [protected, pure virtual] |
Creates new XspfExtensionReader of the very same type as this reader.
reader | XspfReader to interact with, must not be NULL |
XspfStack<std::basic_string<XML_Char> >& getBaseUriStack | ( | ) | const [protected] |
Gives access to the Base URI stack in use.
XspfStack<unsigned int>& getElementStack | ( | ) | const [protected] |
Gives access to the element stack in use.
bool handleError | ( | int | code, | |
XML_Char const * | format, | |||
XML_Char const * | param | |||
) | [protected] |
Passes error handling to the parent XspfReader.
code | Error code | |
format | Error description format string containg s | |
param | Text parameter to insert for s |
bool handleError | ( | int | code, | |
XML_Char const * | text | |||
) | [protected] |
virtual bool handleExtensionCharacters | ( | XML_Char const * | s, | |
int | len | |||
) | [protected, pure virtual] |
Handles element content.
s | Text content | |
len | Characters allowed to read |
virtual bool handleExtensionEnd | ( | XML_Char const * | fullName | ) | [protected, pure virtual] |
Handles tag closing inside an extension including the extension tag itself.
fullName | Full tag name ("<namespace_uri> <localname>") |
virtual bool handleExtensionStart | ( | XML_Char const * | fullName, | |
XML_Char const ** | atts | |||
) | [protected, pure virtual] |
Handles tag opening inside an extension including the extension tag itself.
fullName | Full tag name ("<namespace_uri> <localname>") | |
atts | Alternating list of attribute keys and values |
bool handleXmlBaseAttribute | ( | XML_Char const * | xmlBase | ) | [protected] |
Passes xml:base handling to the parent XspfReader.
xmlBase | Value of xml:base attribute |
XspfExtensionReader& operator= | ( | XspfExtensionReader const & | source | ) |
Assignment operator.
source | Source to copy from |
virtual XspfExtension* wrap | ( | ) | [protected, pure virtual] |