libmusicbrainz3  3.0.2
MusicBrainz::ReleaseEvent Class Reference

A release event, indicating where and when a release took place. More...

Public Member Functions

 ReleaseEvent (const std::string &country=std::string(), const std::string &dateStr=std::string())
 Constructor. More...
 
virtual ~ReleaseEvent ()
 Destructor. More...
 
std::string getCountry () const
 Returns the country a release took place. More...
 
void setCountry (const std::string &country)
 Sets the country a release took place. More...
 
std::string getDate () const
 Returns the date a release took place. More...
 
void setDate (const std::string &dateStr)
 Sets the date a release took place. More...
 
void setCatalogNumber (const std::string &catalogNumber)
 
std::string getCatalogNumber () const
 
void setBarcode (const std::string &barcode)
 
std::string getBarcode () const
 
void setLabel (Label *label)
 
LabelgetLabel ()
 

Detailed Description

A release event, indicating where and when a release took place.

All country codes used must be valid ISO-3166 country codes (i.e. "DE", "UK" or "FR"). The dates are strings and must have the format "YYYY", "YYYY-MM" or "YYYY-MM-DD".

Constructor & Destructor Documentation

◆ ReleaseEvent()

MusicBrainz::ReleaseEvent::ReleaseEvent ( const std::string &  country = std::string(),
const std::string &  dateStr = std::string() 
)

Constructor.

Parameters
countrya string containing an ISO-3166 country code
dateStra string containing a date string

◆ ~ReleaseEvent()

virtual MusicBrainz::ReleaseEvent::~ReleaseEvent ( )
virtual

Destructor.

Member Function Documentation

◆ getBarcode()

std::string MusicBrainz::ReleaseEvent::getBarcode ( ) const

◆ getCatalogNumber()

std::string MusicBrainz::ReleaseEvent::getCatalogNumber ( ) const

◆ getCountry()

std::string MusicBrainz::ReleaseEvent::getCountry ( ) const

Returns the country a release took place.

Note
Due to a server limitation, the web service does not return country IDs for release collection queries. This only affects the Query::getReleases query.
Returns
a string containing an ISO-3166 country code
See also
getCountryName

◆ getDate()

std::string MusicBrainz::ReleaseEvent::getDate ( ) const

Returns the date a release took place.

Returns
a string containing a date

◆ getLabel()

Label* MusicBrainz::ReleaseEvent::getLabel ( )

◆ setBarcode()

void MusicBrainz::ReleaseEvent::setBarcode ( const std::string &  barcode)

◆ setCatalogNumber()

void MusicBrainz::ReleaseEvent::setCatalogNumber ( const std::string &  catalogNumber)

◆ setCountry()

void MusicBrainz::ReleaseEvent::setCountry ( const std::string &  country)

Sets the country a release took place.

Parameters
countrya string containing an ISO-3166 country code

◆ setDate()

void MusicBrainz::ReleaseEvent::setDate ( const std::string &  dateStr)

Sets the date a release took place.

Parameters
dateStra string containing a date

◆ setLabel()

void MusicBrainz::ReleaseEvent::setLabel ( Label label)