libmusicbrainz4  4.0.3
ReleaseGroup.h
Go to the documentation of this file.
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$
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 #include "musicbrainz4/SecondaryTypeList.h"
00037 
00038 #include "musicbrainz4/xmlParser.h"
00039 
00040 namespace MusicBrainz4
00041 {
00042         class CReleaseGroupPrivate;
00043 
00044         class CArtistCredit;
00045         class CRating;
00046         class CUserRating;
00047         class CSecondaryType;
00048 
00049         class CReleaseGroup: public CEntity
00050         {
00051         public:
00052                 CReleaseGroup(const XMLNode& Node=XMLNode::emptyNode());
00053                 CReleaseGroup(const CReleaseGroup& Other);
00054                 CReleaseGroup& operator =(const CReleaseGroup& Other);
00055                 virtual ~CReleaseGroup();
00056 
00057                 virtual CReleaseGroup *Clone();
00058 
00059                 std::string ID() const;
00060 
00072                 LIBMB4_DEPRECATED(MusicBrainz4::CReleaseGroup::PrimaryType) std::string Type() const;
00073                 std::string PrimaryType() const;
00074                 std::string Title() const;
00075                 std::string Disambiguation() const;
00076                 std::string FirstReleaseDate() const;
00077                 CArtistCredit *ArtistCredit() const;
00078                 CReleaseList *ReleaseList() const;
00079 
00091                 LIBMB4_DEPRECATED(MusicBrainz4::CReleaseGroup::RelationListList) CRelationList *RelationList() const;
00092                 CRelationListList *RelationListList() const;
00093                 CTagList *TagList() const;
00094                 CUserTagList *UserTagList() const;
00095                 CRating *Rating() const;
00096                 CUserRating *UserRating() const;
00097                 CSecondaryTypeList *SecondaryTypeList() const;
00098 
00099                 virtual std::ostream& Serialise(std::ostream& os) const;
00100                 static std::string GetElementName();
00101 
00102         protected:
00103                 virtual void ParseAttribute(const std::string& Name, const std::string& Value);
00104                 virtual void ParseElement(const XMLNode& Node);
00105 
00106         private:
00107                 void Cleanup();
00108 
00109                 CReleaseGroupPrivate * const m_d;
00110         };
00111 }
00112 
00113 #endif
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Defines