libmusicbrainz3
3.0.3
|
Represents an artist alias. More...
Public Member Functions | |
ArtistAlias (const std::string &value=std::string(), const std::string &type=std::string(), const std::string &script=std::string()) | |
Constructor. More... | |
virtual | ~ArtistAlias () |
Destructor. More... | |
std::string | getValue () const |
Returns the alias. More... | |
void | setValue (const std::string &value) |
Sets the alias. More... | |
std::string | getType () const |
Returns the alias type. More... | |
void | setType (const std::string &type) |
Sets the alias type. More... | |
std::string | getScript () const |
Returns the alias script. More... | |
void | setScript (const std::string &type) |
Sets the alias script. More... | |
Represents an artist alias.
An alias (the alias value) is a different representation of an artist's name. This may be a common misspelling or a transliteration (the alias type).
The alias script is interesting mostly for transliterations and indicates which script is used for the alias value. To represent the script, ISO-15924 script codes like 'Latn', 'Cyrl', or 'Hebr' are used.
MusicBrainz::ArtistAlias::ArtistAlias | ( | const std::string & | value = std::string() , |
const std::string & | type = std::string() , |
||
const std::string & | script = std::string() |
||
) |
Constructor.
value | a string containing the alias |
type | a string containing an absolute URI |
script | a string containing an ISO-15924 script code |
|
virtual |
Destructor.
std::string MusicBrainz::ArtistAlias::getScript | ( | ) | const |
Returns the alias script.
std::string MusicBrainz::ArtistAlias::getType | ( | ) | const |
Returns the alias type.
std::string MusicBrainz::ArtistAlias::getValue | ( | ) | const |
Returns the alias.
void MusicBrainz::ArtistAlias::setScript | ( | const std::string & | type) |
Sets the alias script.
type | a string containing an ISO-15924 script code |
void MusicBrainz::ArtistAlias::setType | ( | const std::string & | type) |
Sets the alias type.
type | a string containing an absolute URI |
void MusicBrainz::ArtistAlias::setValue | ( | const std::string & | value) |
Sets the alias.
value | a string containing the alias |