#include <XspfData.h>
|
void | giveImage (XML_Char const *image, bool copy) |
|
void | giveInfo (XML_Char const *info, bool copy) |
|
void | giveAnnotation (XML_Char const *annotation, bool copy) |
|
void | giveCreator (XML_Char const *creator, bool copy) |
|
void | giveTitle (XML_Char const *title, bool copy) |
|
void | giveAppendLink (XML_Char const *rel, bool copyRel, XML_Char const *content, bool copyContent) |
|
void | giveAppendMeta (XML_Char const *rel, bool copyRel, XML_Char const *content, bool copyContent) |
|
void | giveAppendExtension (XspfExtension const *extension, bool copy) |
|
void | lendImage (XML_Char const *image) |
|
void | lendInfo (XML_Char const *info) |
|
void | lendAnnotation (XML_Char const *annotation) |
|
void | lendCreator (XML_Char const *creator) |
|
void | lendTitle (XML_Char const *title) |
|
void | lendAppendLink (XML_Char const *rel, XML_Char const *content) |
|
void | lendAppendMeta (XML_Char const *rel, XML_Char const *content) |
|
void | lendAppendExtension (XspfExtension *extension) |
|
XML_Char * | stealImage () |
|
XML_Char * | stealInfo () |
|
XML_Char * | stealAnnotation () |
|
XML_Char * | stealCreator () |
|
XML_Char * | stealTitle () |
|
std::pair< XML_Char *, XML_Char * > * | stealFirstLink () |
|
std::pair< XML_Char *, XML_Char * > * | stealFirstMeta () |
|
XspfExtension * | stealFirstExtension () |
|
XML_Char const * | getImage () const |
|
XML_Char const * | getInfo () const |
|
XML_Char const * | getAnnotation () const |
|
XML_Char const * | getCreator () const |
|
XML_Char const * | getTitle () const |
|
std::pair< XML_Char const *, XML_Char const * > * | getLink (int index) const |
|
std::pair< XML_Char const *, XML_Char const * > * | getMeta (int index) const |
|
XspfExtension const * | getExtension (int index) const |
|
int | getLinkCount () const |
|
int | getMetaCount () const |
|
int | getExtensionCount () const |
|
|
static bool const | COPY |
| Memory is copied.
|
|
static bool const | TRANSFER |
| Memory ownership is transfered.
|
|
|
static XML_Char * | stealHelper (XML_Char const *&property, bool own) |
|
Provides shared functionality for XspfTrack and XspfProps.
Definition at line 62 of file XspfData.h.
◆ XspfData() [1/2]
◆ XspfData() [2/2]
Copy constructor.
- Parameters
-
source | Source to copy from |
◆ ~XspfData()
Destroys this XspfData object and deletes all memory associated with it that has not been stolen before.
◆ getAnnotation()
XML_Char const* getAnnotation |
( |
| ) |
const |
Returns the annotation property.
- Returns
- Annotation, can be NULL
◆ getCreator()
XML_Char const* getCreator |
( |
| ) |
const |
Returns the creator property.
- Returns
- Creator, can be NULL
◆ getExtension()
Gets a specific extension from the list. If the list is empty NULL
is returned.
NOTE: The returned extension has to be deleted manually!
- Returns
- Specified extension, can be NULL
◆ getExtensionCount()
int getExtensionCount |
( |
| ) |
const |
Returns the number of extensions.
- Returns
- Number of extensions
◆ getImage()
XML_Char const* getImage |
( |
| ) |
const |
Returns the image property.
- Returns
- Image URI, can be NULL
◆ getInfo()
XML_Char const* getInfo |
( |
| ) |
const |
Returns the info property.
- Returns
- Info URI, can be NULL
◆ getLink()
std::pair<XML_Char const *, XML_Char const *>* getLink |
( |
int |
index | ) |
const |
Gets a specific link pair from the list. If the list is empty NULL
is returned.
NOTE: The returned pair has to be deleted manually!
- Returns
- Specified link pair, can be NULL
◆ getLinkCount()
int getLinkCount |
( |
| ) |
const |
Returns the number of link pairs.
- Returns
- Number of link pairs
◆ getMeta()
std::pair<XML_Char const *, XML_Char const *>* getMeta |
( |
int |
index | ) |
const |
Gets a specific meta pair from the list. If the list is empty NULL
is returned.
NOTE: The returned pair has to be deleted manually!
- Returns
- Specified meta pair, can be NULL
◆ getMetaCount()
int getMetaCount |
( |
| ) |
const |
Returns the number of meta pairs.
- Returns
- Number of meta pairs
◆ getTitle()
XML_Char const* getTitle |
( |
| ) |
const |
Returns the title property.
- Returns
- Title, can be NULL
◆ giveAnnotation()
void giveAnnotation |
( |
XML_Char const * |
annotation, |
|
|
bool |
copy |
|
) |
| |
Overwrites the annotation property. If copy
is true the string will be copied, otherwise just assigned. In both cases the associated memory will be deleted on object destruction.
- Parameters
-
annotation | Annotation string to set |
copy | Copy flag |
◆ giveAppendExtension()
void giveAppendExtension |
( |
XspfExtension const * |
extension, |
|
|
bool |
copy |
|
) |
| |
Appends an extension to the extension list.
- Parameters
-
extension | Extension to append |
copy | Copy flag |
◆ giveAppendLink()
void giveAppendLink |
( |
XML_Char const * |
rel, |
|
|
bool |
copyRel, |
|
|
XML_Char const * |
content, |
|
|
bool |
copyContent |
|
) |
| |
Appends a link to the link list.
- Parameters
-
rel | Link rel to append |
copyRel | Rel copy flag |
content | Link content to append |
copyContent | Content copy flag |
◆ giveAppendMeta()
void giveAppendMeta |
( |
XML_Char const * |
rel, |
|
|
bool |
copyRel, |
|
|
XML_Char const * |
content, |
|
|
bool |
copyContent |
|
) |
| |
Appends a meta to the meta list.
- Parameters
-
rel | Meta rel to append |
copyRel | Rel copy flag |
content | Meta content to append |
copyContent | Content copy flag |
◆ giveCreator()
void giveCreator |
( |
XML_Char const * |
creator, |
|
|
bool |
copy |
|
) |
| |
Overwrites the creator property. If copy
is true the string will be copied, otherwise just assigned. In both cases the associated memory will be deleted on object destruction.
- Parameters
-
creator | Creator string to set |
copy | Copy flag |
◆ giveImage()
void giveImage |
( |
XML_Char const * |
image, |
|
|
bool |
copy |
|
) |
| |
Overwrites the image property. If copy
is true the string will be copied, otherwise just assigned. In both cases the associated memory will be deleted on object destruction.
- Parameters
-
image | Image string to set |
copy | Copy flag |
◆ giveInfo()
void giveInfo |
( |
XML_Char const * |
info, |
|
|
bool |
copy |
|
) |
| |
Overwrites the info property. If copy
is true the string will be copied, otherwise just assigned. In both cases the associated memory will be deleted on object destruction.
- Parameters
-
info | Info string to set |
copy | Copy flag |
◆ giveTitle()
void giveTitle |
( |
XML_Char const * |
title, |
|
|
bool |
copy |
|
) |
| |
Overwrites the title property. If copy
is true the string will be copied, otherwise just assigned. In both cases the associated memory will be deleted on object destruction.
- Parameters
-
title | Title string to set |
copy | Copy flag |
◆ lendAnnotation()
void lendAnnotation |
( |
XML_Char const * |
annotation | ) |
|
Overwrites the annotation property. The string is only assigned not copied. The ownership is not transferred.
- Parameters
-
annotation | Annotation string to set |
◆ lendAppendExtension()
Appends an extension to the extension list. The associated memory is neither copied nor deleted on onject destruction.
- Parameters
-
extension | Extension to append |
◆ lendAppendLink()
void lendAppendLink |
( |
XML_Char const * |
rel, |
|
|
XML_Char const * |
content |
|
) |
| |
Appends a link pair to the link list. The associated memory is neither copied nor deleted on onject destruction.
- Parameters
-
rel | Link rel to append |
content | Link content to append |
◆ lendAppendMeta()
void lendAppendMeta |
( |
XML_Char const * |
rel, |
|
|
XML_Char const * |
content |
|
) |
| |
Appends a meta pair to the meta list. The associated memory is neither copied nor deleted on onject destruction.
- Parameters
-
rel | Meta rel to append |
content | Meta content to append |
◆ lendCreator()
void lendCreator |
( |
XML_Char const * |
creator | ) |
|
Overwrites the creator property. The string is only assigned not copied. The ownership is not transferred.
- Parameters
-
creator | Creator string to set |
◆ lendImage()
void lendImage |
( |
XML_Char const * |
image | ) |
|
Overwrites the image property. The string is only assigned not copied. The ownership is not transferred.
- Parameters
-
◆ lendInfo()
void lendInfo |
( |
XML_Char const * |
info | ) |
|
Overwrites the info property. The string is only assigned not copied. The ownership is not transferred.
- Parameters
-
◆ lendTitle()
void lendTitle |
( |
XML_Char const * |
title | ) |
|
Overwrites the title property. The string is only assigned not copied. The ownership is not transferred.
- Parameters
-
◆ operator=()
Assignment operator.
- Parameters
-
source | Source to copy from |
◆ stealAnnotation()
XML_Char* stealAnnotation |
( |
| ) |
|
Steals the annotation property.
- Returns
- Annotation, can be NULL
◆ stealCreator()
XML_Char* stealCreator |
( |
| ) |
|
Steals the creator property.
- Returns
- Creator, can be NULL
◆ stealFirstExtension()
Steals the extension from the list. If the list is empty NULL
is returned.
NOTE: Do not forget to delete the extension!
- Returns
- First extension, can be NULL
◆ stealFirstLink()
std::pair<XML_Char *, XML_Char *>* stealFirstLink |
( |
| ) |
|
Steals the first link pair from the list. If the list is empty NULL
is returned.
NOTE: Do not forget to delete the pair!
- Returns
- First link pair, can be NULL
◆ stealFirstMeta()
std::pair<XML_Char *, XML_Char *>* stealFirstMeta |
( |
| ) |
|
Steals the first meta pair from the list. If the list is empty NULL
is returned.
NOTE: Do not forget to delete the pair!
- Returns
- First meta pair, can be NULL
◆ stealHelper()
static XML_Char* stealHelper |
( |
XML_Char const *& |
property, |
|
|
bool |
own |
|
) |
| |
|
staticprotected |
Steals a property. If the property's memory is not owned a clone is returned. In any case you own the memory return and have to delete it.
- Parameters
-
property | Property to steal |
own | Owner flag |
- Returns
- Stolen property value, can be NULL
◆ stealImage()
Steals the image property.
- Returns
- Image URI, can be NULL
◆ stealInfo()
Steals the info property.
- Returns
- Info URI, can be NULL
◆ stealTitle()
Steals the title property.
- Returns
- Title, can be NULL
The documentation for this class was generated from the following file: