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.


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]

Destructor.


Member Function Documentation

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

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

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

Returns the date a release took place.

Returns:
a string containing a date

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

Sets the date a release took place.

Parameters:
dateStr a string containing a date


Generated on Tue Nov 13 16:07:23 2007 for libmusicbrainz3 by  doxygen 1.5.3-20071008