libxspf  1.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Member Functions
XspfExtensionReaderFactory Class Reference

#include <XspfExtensionReaderFactory.h>

List of all members.

Public Member Functions

 XspfExtensionReaderFactory ()
 XspfExtensionReaderFactory (const XspfExtensionReaderFactory &source)
XspfExtensionReaderFactoryoperator= (XspfExtensionReaderFactory const &source)
 ~XspfExtensionReaderFactory ()
void registerPlaylistExtensionReader (XspfExtensionReader const *example, XML_Char const *triggerUri)
void registerTrackExtensionReader (XspfExtensionReader const *example, XML_Char const *triggerUri)
void unregisterPlaylistExtensionReader (XML_Char const *triggerUri)
void unregisterTrackExtensionReader (XML_Char const *triggerUri)
XspfExtensionReadernewPlaylistExtensionReader (XML_Char const *applicationUri, XspfReader *reader)
XspfExtensionReadernewTrackExtensionReader (XML_Char const *applicationUri, XspfReader *reader)

Detailed Description

Manages creation of XspfExtensionReader instances. XspfExtensionReaders can be registered/unregistered dynamically.

Definition at line 66 of file XspfExtensionReaderFactory.h.


Constructor & Destructor Documentation

Creates a new XspfExtensionReaderFactory object.

Copy constructor.

Parameters:
sourceSource to copy from

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


Member Function Documentation

XspfExtensionReader* newPlaylistExtensionReader ( XML_Char const *  applicationUri,
XspfReader reader 
)

Creates a new XspfExtensionReader whose type was registered for this application URI.

Parameters:
applicationUriApplication URI
readerXspfReader for the extension reader
Returns:
New playlist extension reader
XspfExtensionReader* newTrackExtensionReader ( XML_Char const *  applicationUri,
XspfReader reader 
)

Creates a new XspfExtensionReader whose type was registered for this application URI.

Parameters:
applicationUriApplication URI
readerXspfReader for the extension reader
Returns:
New track extension reader

Assignment operator.

Parameters:
sourceSource to copy from
void registerPlaylistExtensionReader ( XspfExtensionReader const *  example,
XML_Char const *  triggerUri 
)

Overwrites the registered reader for the given application URI. Pass NULL for the URI to make this the catch-all reader. The reader will be cloned internally so can safely delete the instance passed for registration.

Parameters:
exampleRepresentative for the extension reader cleass
triggerUriApplication URI associate, must not be NULL
void registerTrackExtensionReader ( XspfExtensionReader const *  example,
XML_Char const *  triggerUri 
)

Overwrites the registered reader for the given application URI. Pass NULL for the URI to make this the catch-all reader. The reader will be cloned internally so can safely delete the instance passed for registration.

Parameters:
exampleRepresentative for the extension reader cleass
triggerUriApplication URI associate, must not be NULL
void unregisterPlaylistExtensionReader ( XML_Char const *  triggerUri)

Unregisteres the given application URI. NOTE: This URI will still be handled if a catch-all handler has been set.

Parameters:
triggerUriApplication URI to unregister
void unregisterTrackExtensionReader ( XML_Char const *  triggerUri)

Unregisteres the given application URI. NOTE: This URI will still be handled if a catch-all handler has been set.

Parameters:
triggerUriApplication URI to unregister

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