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 v2 of the GNU Lesser General Public |
11 | License as published by the Free Software Foundation. |
12 | |
13 | libmusicbrainz5 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 _MUSICBRAINZ5_ARTIST_CREDIT_H |
26 | #define _MUSICBRAINZ5_ARTIST_CREDIT_H |
27 | |
28 | #include <iostream> |
29 | |
30 | #include "musicbrainz5/Entity.h" |
31 | #include "musicbrainz5/NameCreditList.h" |
32 | |
33 | #include "musicbrainz5/xmlParser.h" |
34 | |
35 | namespace MusicBrainz5 |
36 | { |
37 | class CArtistCreditPrivate; |
38 | |
39 | class CArtistCredit: public CEntity |
40 | { |
41 | public: |
42 | CArtistCredit(const XMLNode& Node=XMLNode::emptyNode()); |
43 | CArtistCredit(const CArtistCredit& Other); |
44 | CArtistCredit& operator =(const CArtistCredit& Other); |
45 | virtual ~CArtistCredit(); |
46 | |
47 | virtual CArtistCredit *Clone(); |
48 | |
49 | CNameCreditList *NameCreditList() const; |
50 | |
51 | virtual std::ostream& Serialise(std::ostream& os) const; |
52 | static std::string GetElementName(); |
53 | |
54 | protected: |
55 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
56 | virtual void ParseElement(const XMLNode& Node); |
57 | |
58 | private: |
59 | void Cleanup(); |
60 | |
61 | CArtistCreditPrivate * const m_d; |
62 | }; |
63 | } |
64 | |
65 | #endif |
66 | |