libmusicbrainz4  4.0.3
Release.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_RELEASE_H
26 #define _MUSICBRAINZ4_RELEASE_H
27 
28 #include "musicbrainz4/Entity.h"
33 
34 #include "musicbrainz4/xmlParser.h"
35 
36 #include <string>
37 #include <iostream>
38 
39 namespace MusicBrainz4
40 {
41  class CReleasePrivate;
42 
43  class CTextRepresentation;
44  class CArtistCredit;
45  class CReleaseGroup;
46  class CMedium;
47 
48  class CRelease: public CEntity
49  {
50  public:
51  CRelease(const XMLNode& Node=XMLNode::emptyNode());
52  CRelease(const CRelease& Other);
53  CRelease& operator =(const CRelease& Other);
54  virtual ~CRelease();
55 
56  virtual CRelease *Clone();
57 
58  std::string ID() const;
59  std::string Title() const;
60  std::string Status() const;
61  std::string Quality() const;
62  std::string Disambiguation() const;
63  std::string Packaging() const;
65  CArtistCredit *ArtistCredit() const;
66  CReleaseGroup *ReleaseGroup() const;
67  std::string Date() const;
68  std::string Country() const;
69  std::string Barcode() const;
70  std::string ASIN() const;
72  CMediumList *MediumList() const;
73 
88 
89  CMediumList MediaMatchingDiscID(const std::string& DiscID) const;
90 
91  virtual std::ostream& Serialise(std::ostream& os) const;
92  static std::string GetElementName();
93 
94  protected:
95  virtual void ParseAttribute(const std::string& Name, const std::string& Value);
96  virtual void ParseElement(const XMLNode& Node);
97 
98  private:
99  void Cleanup();
100 
101  CReleasePrivate * const m_d;
102  };
103 }
104 
105 #endif
Definition: MediumList.h:40
CRelease & operator=(const CRelease &Other)
virtual void ParseAttribute(const std::string &Name, const std::string &Value)
Definition: Entity.h:41
CArtistCredit * ArtistCredit() const
Definition: TextRepresentation.h:39
CRelease(const XMLNode &Node=XMLNode::emptyNode())
CMediumList * MediumList() const
Definition: RelationList.h:40
CCollectionList * CollectionList() const
std::string ASIN() const
std::string Status() const
std::string Barcode() const
CMediumList MediaMatchingDiscID(const std::string &DiscID) const
std::string Packaging() const
Definition: ReleaseGroup.h:49
#define LIBMB4_DEPRECATED(f)
Definition: defines.h:38
CReleaseGroup * ReleaseGroup() const
std::string Quality() const
std::string Date() const
std::string ID() const
CTextRepresentation * TextRepresentation() const
CLabelInfoList * LabelInfoList() const
virtual void ParseElement(const XMLNode &Node)
CRelationListList * RelationListList() const
std::string Country() const
static std::string GetElementName()
virtual CRelease * Clone()
std::string Disambiguation() const
virtual std::ostream & Serialise(std::ostream &os) const
Definition: Release.h:48
Definition: ArtistCredit.h:39
Definition: RelationListList.h:38
std::string Title() const
Definition: Alias.h:35
CRelationList * RelationList() const
Definition: ListImpl.h:33