libmusicbrainz4
4.0.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Typedefs
Enumerations
Enumerator
Macros
Pages
Artist.h
Go to the documentation of this file.
1
/* --------------------------------------------------------------------------
2
3
libmusicbrainz4 - Client library to access MusicBrainz
4
5
Copyright (C) 2011 Andrew Hawkins
6
7
This file is part of libmusicbrainz4.
8
9
This library is free software; you can redistribute it and/or
10
modify it under the terms of v2 of the GNU Lesser General Public
11
License as published by the Free Software Foundation.
12
13
libmusicbrainz4 is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
Lesser General Public License for more details.
17
18
You should have received a copy of the GNU General Public License
19
along with this library. If not, see <http://www.gnu.org/licenses/>.
20
21
$Id$
22
23
----------------------------------------------------------------------------*/
24
25
#ifndef _MUSICBRAINZ4_ARTIST_H
26
#define _MUSICBRAINZ4_ARTIST_H
27
28
#include <string>
29
#include <iostream>
30
31
#include "
musicbrainz4/Entity.h
"
32
#include "
musicbrainz4/IPIList.h
"
33
#include "
musicbrainz4/ReleaseList.h
"
34
#include "
musicbrainz4/AliasList.h
"
35
#include "
musicbrainz4/RecordingList.h
"
36
#include "
musicbrainz4/ReleaseGroupList.h
"
37
#include "
musicbrainz4/LabelList.h
"
38
#include "
musicbrainz4/WorkList.h
"
39
#include "
musicbrainz4/RelationList.h
"
40
#include "
musicbrainz4/TagList.h
"
41
#include "
musicbrainz4/UserTagList.h
"
42
43
#include "musicbrainz4/xmlParser.h"
44
45
namespace
MusicBrainz4
46
{
47
class
CArtistPrivate;
48
class
CLifespan;
49
class
CRating;
50
class
CUserRating;
51
52
class
CArtist
:
public
CEntity
53
{
54
public
:
55
CArtist
(
const
XMLNode& Node=XMLNode::emptyNode());
56
CArtist
(
const
CArtist
& Other);
57
CArtist
&
operator =
(
const
CArtist
& Other);
58
virtual
~CArtist
();
59
60
virtual
CArtist
*
Clone
();
61
62
std::string
ID
()
const
;
63
std::string
Type
()
const
;
64
std::string
Name
()
const
;
65
std::string
SortName
()
const
;
66
std::string
Gender
()
const
;
67
std::string
Country
()
const
;
68
std::string
Disambiguation
()
const
;
69
81
LIBMB4_DEPRECATED
(
MusicBrainz4::CArtist::IPIList
) std::string
IPI
()
const
;
82
CIPIList
*
IPIList
()
const
;
83
CLifespan
*
Lifespan
()
const
;
84
CAliasList
*
AliasList
()
const
;
85
CRecordingList
*
RecordingList
()
const
;
86
CReleaseList
*
ReleaseList
()
const
;
87
CReleaseGroupList
*
ReleaseGroupList
()
const
;
88
CLabelList
*
LabelList
()
const
;
89
CWorkList
*
WorkList
()
const
;
90
102
LIBMB4_DEPRECATED
(
MusicBrainz4::CArtist::RelationListList
)
CRelationList
*
RelationList
()
const
;
103
CRelationListList
*
RelationListList
()
const
;
104
CTagList
*
TagList
()
const
;
105
CUserTagList
*
UserTagList
()
const
;
106
CRating
*
Rating
()
const
;
107
CUserRating
*
UserRating
()
const
;
108
109
virtual
std::ostream&
Serialise
(std::ostream& os)
const
;
110
static
std::string
GetElementName
();
111
112
protected
:
113
virtual
void
ParseAttribute
(
const
std::string& Name,
const
std::string& Value);
114
virtual
void
ParseElement
(
const
XMLNode& Node);
115
116
private
:
117
void
Cleanup();
118
119
CArtistPrivate *
const
m_d;
120
};
121
}
122
123
#endif
include
musicbrainz4
Artist.h
Generated by
1.8.1.2