libmusicbrainz5  5.0.1
Label.h
Go to the documentation of this file.
00001 /* --------------------------------------------------------------------------
00002 
00003    libmusicbrainz5 - Client library to access MusicBrainz
00004 
00005    Copyright (C) 2012 Andrew Hawkins
00006 
00007    This file is part of libmusicbrainz5.
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    libmusicbrainz5 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 _MUSICBRAINZ5_LABEL_H
00026 #define _MUSICBRAINZ5_LABEL_H
00027 
00028 #include <string>
00029 #include <iostream>
00030 
00031 #include "musicbrainz5/Entity.h"
00032 #include "musicbrainz5/IPIList.h"
00033 #include "musicbrainz5/ReleaseList.h"
00034 #include "musicbrainz5/AliasList.h"
00035 #include "musicbrainz5/RelationList.h"
00036 #include "musicbrainz5/TagList.h"
00037 #include "musicbrainz5/UserTagList.h"
00038 
00039 #include "musicbrainz5/xmlParser.h"
00040 
00041 namespace MusicBrainz5
00042 {
00043         class CLabelPrivate;
00044 
00045         class CLifespan;
00046         class CRating;
00047         class CUserRating;
00048 
00049         class CLabel: public CEntity
00050         {
00051         public:
00052                 CLabel(const XMLNode& Node=XMLNode::emptyNode());
00053                 CLabel(const CLabel& Other);
00054                 CLabel& operator =(const CLabel& Other);
00055                 virtual ~CLabel();
00056 
00057                 virtual CLabel *Clone();
00058 
00059                 std::string ID() const;
00060                 std::string Type() const;
00061                 std::string Name() const;
00062                 std::string SortName() const;
00063                 int LabelCode() const;
00064                 CIPIList *IPIList() const;
00065                 std::string Disambiguation() const;
00066                 std::string Country() const;
00067                 CLifespan *Lifespan() const;
00068                 CAliasList *AliasList() const;
00069                 CReleaseList *ReleaseList() const;
00070                 CRelationListList *RelationListList() const;
00071                 CTagList *TagList() const;
00072                 CUserTagList *UserTagList() const;
00073                 CRating *Rating() const;
00074                 CUserRating *UserRating() const;
00075 
00076                 virtual std::ostream& Serialise(std::ostream& os) const;
00077                 static std::string GetElementName();
00078 
00079         protected:
00080                 virtual void ParseAttribute(const std::string& Name, const std::string& Value);
00081                 virtual void ParseElement(const XMLNode& Node);
00082 
00083         private:
00084                 void Cleanup();
00085 
00086                 CLabelPrivate * const m_d;
00087         };
00088 }
00089 
00090 #endif
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Defines