libmusicbrainz5 5.1.0
Release.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_H
27#define _MUSICBRAINZ5_RELEASE_H
28
29#include "musicbrainz5/Entity.h"
34
35#include "musicbrainz5/xmlParser.h"
36
37#include <string>
38#include <iostream>
39
40namespace MusicBrainz5
41{
42 class CReleasePrivate;
43
44 class CTextRepresentation;
45 class CArtistCredit;
46 class CReleaseGroup;
47 class CMedium;
48
49 class CRelease: public CEntity
50 {
51 public:
52 CRelease(const XMLNode& Node=XMLNode::emptyNode());
53 CRelease(const CRelease& Other);
55 virtual ~CRelease();
56
57 virtual CRelease *Clone();
58
59 std::string ID() const;
60 std::string Title() const;
61 std::string Status() const;
62 std::string Quality() const;
63 std::string Disambiguation() const;
64 std::string Packaging() const;
68 std::string Date() const;
69 std::string Country() const;
70 std::string Barcode() const;
71 std::string ASIN() const;
76
77 CMediumList MediaMatchingDiscID(const std::string& DiscID) const;
78
79 virtual std::ostream& Serialise(std::ostream& os) const;
80 static std::string GetElementName();
81
82 protected:
83 virtual void ParseAttribute(const std::string& Name, const std::string& Value);
84 virtual void ParseElement(const XMLNode& Node);
85
86 private:
87 void Cleanup();
88
89 CReleasePrivate * const m_d;
90 };
91}
92
93#endif
Definition: ArtistCredit.h:41
Definition: Entity.h:43
Definition: ListImpl.h:35
Definition: MediumList.h:42
Definition: RelationListList.h:40
Definition: ReleaseGroup.h:51
Definition: Release.h:50
std::string Date() const
std::string ASIN() const
std::string Title() const
CLabelInfoList * LabelInfoList() const
static std::string GetElementName()
CRelease(const XMLNode &Node=XMLNode::emptyNode())
std::string Disambiguation() const
std::string Quality() const
CArtistCredit * ArtistCredit() const
CTextRepresentation * TextRepresentation() const
CReleaseGroup * ReleaseGroup() const
virtual std::ostream & Serialise(std::ostream &os) const
CRelease & operator=(const CRelease &Other)
std::string Packaging() const
CRelationListList * RelationListList() const
std::string Status() const
std::string Country() const
virtual CRelease * Clone()
CMediumList * MediumList() const
CCollectionList * CollectionList() const
CRelease(const CRelease &Other)
virtual void ParseElement(const XMLNode &Node)
virtual void ParseAttribute(const std::string &Name, const std::string &Value)
std::string Barcode() const
std::string ID() const
CMediumList MediaMatchingDiscID(const std::string &DiscID) const
Definition: TextRepresentation.h:41
Definition: Alias.h:37