MusicBrainz::ArtistAlias Class Reference
Represents an artist alias.
More...
List of all members.
Public Member Functions |
| ArtistAlias (const std::string &value=std::string(), const std::string &type=std::string(), const std::string &script=std::string()) |
| Constructor.
|
virtual | ~ArtistAlias () |
| Destructor.
|
std::string | getValue () const |
| Returns the alias.
|
void | setValue (const std::string &value) |
| Sets the alias.
|
std::string | getType () const |
| Returns the alias type.
|
void | setType (const std::string &type) |
| Sets the alias type.
|
std::string | getScript () const |
| Returns the alias script.
|
void | setScript (const std::string &type) |
| Sets the alias script.
|
Detailed Description
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.
Constructor & Destructor Documentation
MusicBrainz::ArtistAlias::ArtistAlias |
( |
const std::string & |
value = std::string() , |
|
|
const std::string & |
type = std::string() , |
|
|
const std::string & |
script = std::string() | |
|
) |
| | |
Constructor.
- Parameters:
-
| value | a string containing the alias |
| type | a string containing an absolute URI |
| script | a string containing an ISO-15924 script code |
virtual MusicBrainz::ArtistAlias::~ArtistAlias |
( |
|
) |
[virtual] |
Member Function Documentation
std::string MusicBrainz::ArtistAlias::getScript |
( |
|
) |
const |
Returns the alias script.
- Returns:
- a string containing an ISO-15924 script code
std::string MusicBrainz::ArtistAlias::getType |
( |
|
) |
const |
Returns the alias type.
- Returns:
- a string containing an absolute URI
std::string MusicBrainz::ArtistAlias::getValue |
( |
|
) |
const |
Returns the alias.
- Returns:
- a string containing the alias
void MusicBrainz::ArtistAlias::setScript |
( |
const std::string & |
type |
) |
|
Sets the alias script.
- Parameters:
-
| type | a string containing an ISO-15924 script code |
void MusicBrainz::ArtistAlias::setType |
( |
const std::string & |
type |
) |
|
Sets the alias type.
- Parameters:
-
| type | a string containing an absolute URI |
void MusicBrainz::ArtistAlias::setValue |
( |
const std::string & |
value |
) |
|
Sets the alias.
- Parameters:
-
| value | a string containing the alias |