MusicBrainz::ReleaseEvent Class Reference
A release event, indicating where and when a release took place.
More...
List of all members.
Public Member Functions |
| | ReleaseEvent (const std::string &country=std::string(), const std::string &dateStr=std::string()) |
| | Constructor.
|
| virtual | ~ReleaseEvent () |
| | Destructor.
|
| std::string | getCountry () const |
| | Returns the country a release took place.
|
| void | setCountry (const std::string &country) |
| | Sets the country a release took place.
|
| std::string | getDate () const |
| | Returns the date a release took place.
|
| void | setDate (const std::string &dateStr) |
| | Sets the date a release took place.
|
| void | setCatalogNumber (const std::string &catalogNumber) |
| std::string | getCatalogNumber () const |
| void | setBarcode (const std::string &barcode) |
| std::string | getBarcode () const |
| void | setLabel (Label *label) |
| Label * | getLabel () |
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
| MusicBrainz::ReleaseEvent::ReleaseEvent |
( |
const std::string & |
country = std::string(), |
|
|
const std::string & |
dateStr = std::string() | |
|
) |
| | |
Constructor.
- Parameters:
-
| country | a string containing an ISO-3166 country code |
| dateStr | a string containing a date string |
| virtual MusicBrainz::ReleaseEvent::~ReleaseEvent |
( |
|
) |
[virtual] |
Member Function Documentation
| std::string MusicBrainz::ReleaseEvent::getBarcode |
( |
|
) |
const |
| std::string MusicBrainz::ReleaseEvent::getCatalogNumber |
( |
|
) |
const |
| 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
| std::string MusicBrainz::ReleaseEvent::getDate |
( |
|
) |
const |
Returns the date a release took place.
- Returns:
- a string containing a date
| Label* MusicBrainz::ReleaseEvent::getLabel |
( |
|
) |
|
| void MusicBrainz::ReleaseEvent::setBarcode |
( |
const std::string & |
barcode |
) |
|
| void MusicBrainz::ReleaseEvent::setCatalogNumber |
( |
const std::string & |
catalogNumber |
) |
|
| void MusicBrainz::ReleaseEvent::setCountry |
( |
const std::string & |
country |
) |
|
Sets the country a release took place.
- Parameters:
-
| country | a string containing an ISO-3166 country code |
| void MusicBrainz::ReleaseEvent::setDate |
( |
const std::string & |
dateStr |
) |
|
Sets the date a release took place.
- Parameters:
-
| dateStr | a string containing a date |
| void MusicBrainz::ReleaseEvent::setLabel |
( |
Label * |
label |
) |
|