libxspf  1.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Member Functions | Protected Member Functions | Friends
XspfExtensionReader Class Reference

#include <XspfExtensionReader.h>

Inheritance diagram for XspfExtensionReader:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 XspfExtensionReader (XspfReader *reader)
 XspfExtensionReader (XspfExtensionReader const &source)
XspfExtensionReaderoperator= (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 XspfExtensionwrap ()=0
virtual XspfExtensionReadercreateBrother (XspfReader *reader) const =0

Friends

class XspfReader
class XspfReaderPrivate
class XspfExtensionReaderFactory
class XspfExtensionReaderFactoryPrivate

Detailed Description

Provides the base for specific extention readers to derive from.

Definition at line 66 of file XspfExtensionReader.h.


Constructor & Destructor Documentation

Creates a new XspfExtensionReader object.

Parameters:
readerXspfReader to interact with

Copy constructor.

Parameters:
sourceSource to copy from
virtual ~XspfExtensionReader ( ) [virtual]

Destroys this XspfExtensionReader object and deletes all memory associated with it.


Member Function Documentation

virtual XspfExtensionReader* createBrother ( XspfReader reader) const [protected, pure virtual]

Creates new XspfExtensionReader of the very same type as this reader.

Parameters:
readerXspfReader to interact with, must not be NULL
Returns:
A new extension reader of the same type.
XspfStack<std::basic_string<XML_Char> >& getBaseUriStack ( ) const [protected]

Gives access to the Base URI stack in use.

Returns:
Base URI stack reference
XspfStack<unsigned int>& getElementStack ( ) const [protected]

Gives access to the element stack in use.

Returns:
Element stack reference
bool handleError ( int  code,
XML_Char const *  text 
) [protected]

Passes error handling to the parent XspfReader.

Parameters:
codeError code
textError description
bool handleError ( int  code,
XML_Char const *  format,
XML_Char const *  param 
) [protected]

Passes error handling to the parent XspfReader.

Parameters:
codeError code
formatError description format string containg s
paramText parameter to insert for s
virtual bool handleExtensionCharacters ( XML_Char const *  s,
int  len 
) [protected, pure virtual]

Handles element content.

Parameters:
sText content
lenCharacters allowed to read
virtual bool handleExtensionEnd ( XML_Char const *  fullName) [protected, pure virtual]

Handles tag closing inside an extension including the extension tag itself.

Parameters:
fullNameFull tag name ("<namespace_uri> <localname>")
Returns:
Continue parsing flag
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.

Parameters:
fullNameFull tag name ("<namespace_uri> <localname>")
attsAlternating list of attribute keys and values
Returns:
Continue parsing flag
bool handleXmlBaseAttribute ( XML_Char const *  xmlBase) [protected]

Passes xml:base handling to the parent XspfReader.

Parameters:
xmlBaseValue of xml:base attribute
Returns:
Continue parsing flag
XspfExtensionReader& operator= ( XspfExtensionReader const &  source)

Assignment operator.

Parameters:
sourceSource to copy from
virtual XspfExtension* wrap ( ) [protected, pure virtual]

Makes a XspfExtension of the data collected.

Returns:
New built extension

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines