libxspf  1.2.0
Public Member Functions | List of all members
XspfExtensionReaderFactory Class Reference

#include <XspfExtensionReaderFactory.h>

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

◆ XspfExtensionReaderFactory() [1/2]

Creates a new XspfExtensionReaderFactory object.

◆ XspfExtensionReaderFactory() [2/2]

Copy constructor.

Parameters
sourceSource to copy from

◆ ~XspfExtensionReaderFactory()

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

Member Function Documentation

◆ newPlaylistExtensionReader()

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

◆ newTrackExtensionReader()

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

◆ operator=()

Assignment operator.

Parameters
sourceSource to copy from

◆ registerPlaylistExtensionReader()

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

◆ registerTrackExtensionReader()

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

◆ unregisterPlaylistExtensionReader()

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

◆ unregisterTrackExtensionReader()

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: