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. |
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".
MusicBrainz::ReleaseEvent::ReleaseEvent | ( | const std::string & | country = std::string() , |
|
const std::string & | dateStr = std::string() | |||
) |
Constructor.
country | a string containing an ISO-3166 country code | |
dateStr | a string containing a date string |
virtual MusicBrainz::ReleaseEvent::~ReleaseEvent | ( | ) | [virtual] |
Destructor.
std::string MusicBrainz::ReleaseEvent::getCountry | ( | ) | const |
Returns the country a release took place.
void MusicBrainz::ReleaseEvent::setCountry | ( | const std::string & | country | ) |
Sets the country a release took place.
country | a string containing an ISO-3166 country code |
std::string MusicBrainz::ReleaseEvent::getDate | ( | ) | const |
Returns the date a release took place.
void MusicBrainz::ReleaseEvent::setDate | ( | const std::string & | dateStr | ) |
Sets the date a release took place.
dateStr | a string containing a date |