Public Member Functions | Static Public Attributes

MusicBrainz::ReleaseGroup Class Reference

Represents a Release Group. More...

Inheritance diagram for MusicBrainz::ReleaseGroup:
MusicBrainz::Entity

List of all members.

Public Member Functions

 ReleaseGroup (const std::string &id=std::string(), const std::string &title=std::string())
 Constructor.
 ~ReleaseGroup ()
 Destructor.
std::string getTitle () const
 Returns the release group's title.
void setTitle (const std::string &title)
 Sets the release group's title.
ArtistgetArtist ()
 Returns the main artist of this release group.
void setArtist (Artist *artist)
 Sets this release group's main artist.
void setType (const std::string &type)
 Sets the release group's type.
std::string getType () const
 Returns the release group's type.
ReleaseListgetReleases ()
int getNumReleases () const
ReleasegetRelease (int index)

Static Public Attributes

static const std::string TYPE_NONE
static const std::string TYPE_ALBUM
static const std::string TYPE_SINGLE
static const std::string TYPE_EP
static const std::string TYPE_COMPILATION
static const std::string TYPE_SOUNDTRACK
static const std::string TYPE_SPOKENWORD
static const std::string TYPE_INTERVIEW
static const std::string TYPE_AUDIOBOOK
static const std::string TYPE_LIVE
static const std::string TYPE_REMIX
static const std::string TYPE_OTHER

Detailed Description

Represents a Release Group.


Constructor & Destructor Documentation

MusicBrainz::ReleaseGroup::ReleaseGroup ( const std::string &  id = std::string(),
const std::string &  title = std::string() 
)

Constructor.

Parameters:
id a string containing an absolute URI
title a string containing the title
MusicBrainz::ReleaseGroup::~ReleaseGroup (  ) 

Destructor.


Member Function Documentation

Artist* MusicBrainz::ReleaseGroup::getArtist (  ) 

Returns the main artist of this release group.

Returns:
a pointer to Artist object, or NULL
int MusicBrainz::ReleaseGroup::getNumReleases (  )  const
Release* MusicBrainz::ReleaseGroup::getRelease ( int  index  ) 
ReleaseList& MusicBrainz::ReleaseGroup::getReleases (  ) 
std::string MusicBrainz::ReleaseGroup::getTitle (  )  const

Returns the release group's title.

The style and format of this attribute is specified by the style guide.

Returns:
a string containing an absolute URI
See also:
The MusicBrainz Style Guidelines
std::string MusicBrainz::ReleaseGroup::getType (  )  const

Returns the release group's type.

Returns:
a string
See also:
getType
void MusicBrainz::ReleaseGroup::setArtist ( Artist artist  ) 

Sets this release group's main artist.

Parameters:
artist a pointer to Artist object
void MusicBrainz::ReleaseGroup::setTitle ( const std::string &  title  ) 

Sets the release group's title.

Parameters:
title,: a string containing the release group's title
See also:
getTitle
void MusicBrainz::ReleaseGroup::setType ( const std::string &  type  ) 

Sets the release group's type.

Parameters:
type 

Member Data Documentation

const std::string MusicBrainz::ReleaseGroup::TYPE_ALBUM [static]
const std::string MusicBrainz::ReleaseGroup::TYPE_AUDIOBOOK [static]
const std::string MusicBrainz::ReleaseGroup::TYPE_COMPILATION [static]
const std::string MusicBrainz::ReleaseGroup::TYPE_EP [static]
const std::string MusicBrainz::ReleaseGroup::TYPE_INTERVIEW [static]
const std::string MusicBrainz::ReleaseGroup::TYPE_LIVE [static]
const std::string MusicBrainz::ReleaseGroup::TYPE_NONE [static]
const std::string MusicBrainz::ReleaseGroup::TYPE_OTHER [static]
const std::string MusicBrainz::ReleaseGroup::TYPE_REMIX [static]
const std::string MusicBrainz::ReleaseGroup::TYPE_SINGLE [static]
const std::string MusicBrainz::ReleaseGroup::TYPE_SOUNDTRACK [static]
const std::string MusicBrainz::ReleaseGroup::TYPE_SPOKENWORD [static]