libmusicbrainz3  3.0.3
MusicBrainz::Metadata Class Reference

Represents a parsed Music Metadata XML document. More...

List of all members.

Public Member Functions

 Metadata ()
virtual ~Metadata ()
ArtistgetArtist (bool remove=false)
 Returns the artist.
void setArtist (Artist *artist)
 Sets the artist.
ReleasegetRelease (bool remove=false)
 Returns the release.
void setRelease (Release *release)
 Sets the release.
ReleaseGroupgetReleaseGroup (bool remove=false)
 Returns the release group.
void setReleaseGroup (ReleaseGroup *releaseGroup)
 Sets the release group.
TrackgetTrack (bool remove=false)
 Returns a track.
void setTrack (Track *track)
 Sets the track.
LabelgetLabel (bool remove=false)
 Returns the label.
void setLabel (Label *label)
 Sets the label.
UserListgetUserList ()
 Returns a list of users.
UserList getUserList (bool remove)
ArtistResultListgetArtistResults ()
 Returns a artist result list.
ArtistResultList getArtistResults (bool remove)
TrackResultListgetTrackResults ()
 Returns a track result list.
TrackResultList getTrackResults (bool remove)
ReleaseResultListgetReleaseResults ()
 Returns a release result list.
ReleaseResultList getReleaseResults (bool remove)
ReleaseGroupResultListgetReleaseGroupResults ()
 Returns a release group result list.
ReleaseGroupResultList getReleaseGroupResults (bool remove)
LabelResultListgetLabelResults ()
LabelResultList getLabelResults (bool remove)

Detailed Description

Represents a parsed Music Metadata XML document.

The Music Metadata XML format is very flexible and may contain a diverse set of data (e.g. an artist, a release and a list of tracks), but usually only a small subset is used (either an artist, a release or a track, or a lists of objects from one class).

See also:
MbXmlParser for reading

Constructor & Destructor Documentation

virtual MusicBrainz::Metadata::~Metadata ( ) [virtual]

Member Function Documentation

Artist* MusicBrainz::Metadata::getArtist ( bool  remove = false)

Returns the artist.

Parameters:
removeif set to true, the object will be removed from this Metadata instance and the caller is responsible for deleting it when it is no longer needed
Returns:
a pointer to Artist object, or NULL

Returns a artist result list.

Returns:
a vector of pointers to ArtistResult objects
Label* MusicBrainz::Metadata::getLabel ( bool  remove = false)

Returns the label.

Parameters:
removeif set to true, the object will be removed from this Metadata instance and the caller is responsible for deleting it when it is no longer needed
Returns:
a pointer to Label object, or NULL
Release* MusicBrainz::Metadata::getRelease ( bool  remove = false)

Returns the release.

Parameters:
removeif set to true, the object will be removed from this Metadata instance and the caller is responsible for deleting it when it is no longer needed
Returns:
a pointer to Release object, or NULL

Returns the release group.

Parameters:
removeif set to true, the object will be removed from this Metadata instance and the caller is responsible for deleting it when it is no longer needed
Returns:
a pointer to ReleaseGroup object, or NULL

Returns a release group result list.

Returns:
a vector of pointers to ReleaseGroupResult objects

Returns a release result list.

Returns:
a vector of pointers to ReleaseResult objects
Track* MusicBrainz::Metadata::getTrack ( bool  remove = false)

Returns a track.

Parameters:
removeif set to true, the object will be removed from this Metadata instance and the caller is responsible for deleting it when it is no longer needed
Returns:
a pointer to Track object, or NULL

Returns a track result list.

Returns:
a vector of pointers to TrackResult objects

Returns a list of users.

Returns:
a vector of pointers to User objects
Note:
This is a MusicBrainz extension.

Sets the artist.

Parameters:
artista pointer to Artist object, or NULL

Sets the label.

Parameters:
labela pointer to Label object, or NULL

Sets the release.

Parameters:
releasea pointer to Release object, or NULL

Sets the release group.

Parameters:
releaseGroupa pointer to ReleaseGroup object, or NULL

Sets the track.

Parameters:
tracka pointer to Track object, or NULL
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines