libmusicbrainz5 5.1.0
ReleaseGroup.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_RELEASE_GROUP_H
27#define _MUSICBRAINZ5_RELEASE_GROUP_H
28
29#include <string>
30#include <iostream>
31
32#include "musicbrainz5/Entity.h"
38
39#include "musicbrainz5/xmlParser.h"
40
41namespace MusicBrainz5
42{
43 class CReleaseGroupPrivate;
44
45 class CArtistCredit;
46 class CRating;
47 class CUserRating;
48 class CSecondaryType;
49
50 class CReleaseGroup: public CEntity
51 {
52 public:
53 CReleaseGroup(const XMLNode& Node=XMLNode::emptyNode());
56 virtual ~CReleaseGroup();
57
58 virtual CReleaseGroup *Clone();
59
60 std::string ID() const;
61 std::string PrimaryType() const;
62 std::string Title() const;
63 std::string Disambiguation() const;
64 std::string FirstReleaseDate() const;
68 CTagList *TagList() const;
70 CRating *Rating() const;
73
74 virtual std::ostream& Serialise(std::ostream& os) const;
75 static std::string GetElementName();
76
77 protected:
78 virtual void ParseAttribute(const std::string& Name, const std::string& Value);
79 virtual void ParseElement(const XMLNode& Node);
80
81 private:
82 void Cleanup();
83
84 CReleaseGroupPrivate * const m_d;
85 };
86}
87
88#endif
Definition: ArtistCredit.h:41
Definition: Entity.h:43
Definition: ListImpl.h:35
Definition: Rating.h:40
Definition: RelationListList.h:40
Definition: ReleaseGroup.h:51
std::string Title() const
std::string FirstReleaseDate() const
CRating * Rating() const
CRelationListList * RelationListList() const
virtual void ParseElement(const XMLNode &Node)
CArtistCredit * ArtistCredit() const
CReleaseGroup(const CReleaseGroup &Other)
virtual void ParseAttribute(const std::string &Name, const std::string &Value)
CUserTagList * UserTagList() const
CSecondaryTypeList * SecondaryTypeList() const
CReleaseGroup & operator=(const CReleaseGroup &Other)
std::string ID() const
virtual CReleaseGroup * Clone()
std::string Disambiguation() const
std::string PrimaryType() const
virtual std::ostream & Serialise(std::ostream &os) const
CReleaseList * ReleaseList() const
CUserRating * UserRating() const
CReleaseGroup(const XMLNode &Node=XMLNode::emptyNode())
CTagList * TagList() const
static std::string GetElementName()
Definition: SecondaryTypeList.h:42
Definition: UserRating.h:40
Definition: Alias.h:37