libmusicbrainz4
4.0.0
|
00001 /* -------------------------------------------------------------------------- 00002 00003 libmusicbrainz4 - Client library to access MusicBrainz 00004 00005 Copyright (C) 2011 Andrew Hawkins 00006 00007 This file is part of libmusicbrainz4. 00008 00009 This library is free software; you can redistribute it and/or 00010 modify it under the terms of v2 of the GNU Lesser General Public 00011 License as published by the Free Software Foundation. 00012 00013 libmusicbrainz4 is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 Lesser General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with this library. If not, see <http://www.gnu.org/licenses/>. 00020 00021 $Id: ReleaseGroup.h 13259 2011-08-10 12:02:50Z adhawkins $ 00022 00023 ----------------------------------------------------------------------------*/ 00024 00025 #ifndef _MUSICBRAINZ4_RELEASE_GROUP_H 00026 #define _MUSICBRAINZ4_RELEASE_GROUP_H 00027 00028 #include <string> 00029 #include <iostream> 00030 00031 #include "musicbrainz4/Entity.h" 00032 #include "musicbrainz4/ReleaseList.h" 00033 #include "musicbrainz4/RelationList.h" 00034 #include "musicbrainz4/TagList.h" 00035 #include "musicbrainz4/UserTagList.h" 00036 00037 #include "musicbrainz4/xmlParser.h" 00038 00039 namespace MusicBrainz4 00040 { 00041 class CReleaseGroupPrivate; 00042 00043 class CArtistCredit; 00044 class CRating; 00045 class CUserRating; 00046 00047 class CReleaseGroup: public CEntity 00048 { 00049 public: 00050 CReleaseGroup(const XMLNode& Node=XMLNode::emptyNode()); 00051 CReleaseGroup(const CReleaseGroup& Other); 00052 CReleaseGroup& operator =(const CReleaseGroup& Other); 00053 virtual ~CReleaseGroup(); 00054 00055 virtual CReleaseGroup *Clone(); 00056 00057 std::string ID() const; 00058 std::string Type() const; 00059 std::string Title() const; 00060 std::string Disambiguation() const; 00061 std::string FirstReleaseDate() const; 00062 CArtistCredit *ArtistCredit() const; 00063 CReleaseList *ReleaseList() const; 00064 CRelationList *RelationList() const; 00065 CTagList *TagList() const; 00066 CUserTagList *UserTagList() const; 00067 CRating *Rating() const; 00068 CUserRating *UserRating() const; 00069 00070 virtual std::ostream& Serialise(std::ostream& os) const; 00071 static std::string GetElementName(); 00072 00073 protected: 00074 virtual bool ParseAttribute(const std::string& Name, const std::string& Value); 00075 virtual bool ParseElement(const XMLNode& Node); 00076 00077 private: 00078 void Cleanup(); 00079 00080 CReleaseGroupPrivate * const m_d; 00081 }; 00082 } 00083 00084 #endif