libmusicbrainz5 5.1.0
Artist.h
Go to the documentation of this file.
1/* --------------------------------------------------------------------------
2
3 libmusicbrainz5 - Client library to access MusicBrainz
4
5 Copyright (C) 2012 Andrew Hawkins
6
7 This file is part of libmusicbrainz5.
8
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Lesser General Public
11 License as published by the Free Software Foundation; either
12 version 2.1 of the License, or (at your option) any later version.
13
14 libmusicbrainz5 is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this library. If not, see <http://www.gnu.org/licenses/>.
21
22 $Id$
23
24----------------------------------------------------------------------------*/
25
26#ifndef _MUSICBRAINZ5_ARTIST_H
27#define _MUSICBRAINZ5_ARTIST_H
28
29#include <string>
30#include <iostream>
31
32#include "musicbrainz5/Entity.h"
43
44#include "musicbrainz5/xmlParser.h"
45
46namespace MusicBrainz5
47{
48 class CArtistPrivate;
49 class CLifespan;
50 class CRating;
51 class CUserRating;
52
53 class CArtist: public CEntity
54 {
55 public:
56 CArtist(const XMLNode& Node=XMLNode::emptyNode());
57 CArtist(const CArtist& Other);
58 CArtist& operator =(const CArtist& Other);
59 virtual ~CArtist();
60
61 virtual CArtist *Clone();
62
63 std::string ID() const;
64 std::string Type() const;
65 std::string Name() const;
66 std::string SortName() const;
67 std::string Gender() const;
68 std::string Country() const;
69 std::string Disambiguation() const;
70 CIPIList *IPIList() const;
79 CTagList *TagList() const;
81 CRating *Rating() const;
83
84 virtual std::ostream& Serialise(std::ostream& os) const;
85 static std::string GetElementName();
86
87 protected:
88 virtual void ParseAttribute(const std::string& Name, const std::string& Value);
89 virtual void ParseElement(const XMLNode& Node);
90
91 private:
92 void Cleanup();
93
94 CArtistPrivate * const m_d;
95 };
96}
97
98#endif
Definition: Artist.h:54
std::string Country() const
CUserTagList * UserTagList() const
std::string Gender() const
CIPIList * IPIList() const
virtual CArtist * Clone()
CUserRating * UserRating() const
virtual void ParseElement(const XMLNode &Node)
CWorkList * WorkList() const
CArtist & operator=(const CArtist &Other)
static std::string GetElementName()
std::string SortName() const
std::string Name() const
CReleaseGroupList * ReleaseGroupList() const
std::string Disambiguation() const
CTagList * TagList() const
CLabelList * LabelList() const
virtual std::ostream & Serialise(std::ostream &os) const
CReleaseList * ReleaseList() const
CRecordingList * RecordingList() const
CRating * Rating() const
CRelationListList * RelationListList() const
virtual void ParseAttribute(const std::string &Name, const std::string &Value)
std::string ID() const
std::string Type() const
CAliasList * AliasList() const
CArtist(const XMLNode &Node=XMLNode::emptyNode())
CLifespan * Lifespan() const
CArtist(const CArtist &Other)
Definition: Entity.h:43
Definition: Lifespan.h:41
Definition: ListImpl.h:35
Definition: Rating.h:40
Definition: RelationListList.h:40
Definition: UserRating.h:40
Definition: Alias.h:37