libmusicbrainz5  5.1.0
Label.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_LABEL_H
27 #define _MUSICBRAINZ5_LABEL_H
28 
29 #include <string>
30 #include <iostream>
31 
32 #include "musicbrainz5/Entity.h"
33 #include "musicbrainz5/IPIList.h"
35 #include "musicbrainz5/AliasList.h"
37 #include "musicbrainz5/TagList.h"
39 
40 #include "musicbrainz5/xmlParser.h"
41 
42 namespace MusicBrainz5
43 {
44  class CLabelPrivate;
45 
46  class CLifespan;
47  class CRating;
48  class CUserRating;
49 
50  class CLabel: public CEntity
51  {
52  public:
53  CLabel(const XMLNode& Node=XMLNode::emptyNode());
54  CLabel(const CLabel& Other);
55  CLabel& operator =(const CLabel& Other);
56  virtual ~CLabel();
57 
58  virtual CLabel *Clone();
59 
60  std::string ID() const;
61  std::string Type() const;
62  std::string Name() const;
63  std::string SortName() const;
64  int LabelCode() const;
65  CIPIList *IPIList() const;
66  std::string Disambiguation() const;
67  std::string Country() const;
68  CLifespan *Lifespan() const;
69  CAliasList *AliasList() const;
70  CReleaseList *ReleaseList() const;
72  CTagList *TagList() const;
73  CUserTagList *UserTagList() const;
74  CRating *Rating() const;
75  CUserRating *UserRating() const;
76 
77  virtual std::ostream& Serialise(std::ostream& os) const;
78  static std::string GetElementName();
79 
80  protected:
81  virtual void ParseAttribute(const std::string& Name, const std::string& Value);
82  virtual void ParseElement(const XMLNode& Node);
83 
84  private:
85  void Cleanup();
86 
87  CLabelPrivate * const m_d;
88  };
89 }
90 
91 #endif
MusicBrainz5::CLabel::Lifespan
CLifespan * Lifespan() const
AliasList.h
MusicBrainz5::CUserRating
Definition: UserRating.h:39
MusicBrainz5::CRating
Definition: Rating.h:39
MusicBrainz5::CRelationListList
Definition: RelationListList.h:39
MusicBrainz5::CLabel::ParseAttribute
virtual void ParseAttribute(const std::string &Name, const std::string &Value)
ReleaseList.h
MusicBrainz5::CLabel::ReleaseList
CReleaseList * ReleaseList() const
MusicBrainz5::CLabel::TagList
CTagList * TagList() const
MusicBrainz5::CLabel::UserTagList
CUserTagList * UserTagList() const
IPIList.h
MusicBrainz5::CLabel::CLabel
CLabel(const XMLNode &Node=XMLNode::emptyNode())
MusicBrainz5::CEntity
Definition: Entity.h:42
MusicBrainz5::CLabel::Disambiguation
std::string Disambiguation() const
UserTagList.h
MusicBrainz5::CLabel::~CLabel
virtual ~CLabel()
MusicBrainz5::CLabel::ID
std::string ID() const
MusicBrainz5::CLabel::operator=
CLabel & operator=(const CLabel &Other)
Entity.h
MusicBrainz5::CLabel::RelationListList
CRelationListList * RelationListList() const
MusicBrainz5::CLabel::ParseElement
virtual void ParseElement(const XMLNode &Node)
MusicBrainz5::CLabel
Definition: Label.h:50
MusicBrainz5::CLabel::AliasList
CAliasList * AliasList() const
MusicBrainz5::CLifespan
Definition: Lifespan.h:40
MusicBrainz5::CLabel::SortName
std::string SortName() const
MusicBrainz5::CLabel::Type
std::string Type() const
MusicBrainz5::CLabel::GetElementName
static std::string GetElementName()
MusicBrainz5
Definition: Alias.h:36
TagList.h
MusicBrainz5::CLabel::Serialise
virtual std::ostream & Serialise(std::ostream &os) const
MusicBrainz5::CListImpl
Definition: ListImpl.h:34
MusicBrainz5::CLabel::LabelCode
int LabelCode() const
MusicBrainz5::CLabel::Country
std::string Country() const
MusicBrainz5::CLabel::UserRating
CUserRating * UserRating() const
MusicBrainz5::CLabel::Name
std::string Name() const
MusicBrainz5::CLabel::Rating
CRating * Rating() const
MusicBrainz5::CLabel::IPIList
CIPIList * IPIList() const
RelationList.h
MusicBrainz5::CLabel::Clone
virtual CLabel * Clone()