libmusicbrainz5  5.0.1
Collection.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 v2 of the GNU Lesser General Public
11  License as published by the Free Software Foundation.
12 
13  libmusicbrainz5 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 _MUSICBRAINZ5_COLLECTION_H
26 #define _MUSICBRAINZ5_COLLECTION_H
27 
28 #include "musicbrainz5/Entity.h"
30 
31 #include "musicbrainz5/xmlParser.h"
32 
33 namespace MusicBrainz5
34 {
35  class CCollectionPrivate;
36 
37  class CCollection: public CEntity
38  {
39  public:
40  CCollection(const XMLNode& Node);
41  CCollection(const CCollection& Other);
42  CCollection& operator =(const CCollection& Other);
43  virtual ~CCollection();
44 
45  virtual CCollection *Clone();
46 
47  std::string ID() const;
48  std::string Name() const;
49  std::string Editor() const;
50  CReleaseList *ReleaseList() const;
51 
52  virtual std::ostream& Serialise(std::ostream& os) const;
53  static std::string GetElementName();
54 
55  protected:
56  virtual void ParseAttribute(const std::string& Name, const std::string& Value);
57  virtual void ParseElement(const XMLNode& Node);
58 
59  private:
60  void Cleanup();
61 
62  CCollectionPrivate * const m_d;
63  };
64 }
65 
66 #endif
Definition: Alias.h:35
Definition: Entity.h:41
std::string Editor() const
virtual CCollection * Clone()
CCollection & operator=(const CCollection &Other)
CCollection(const XMLNode &Node)
Definition: ListImpl.h:33
virtual void ParseElement(const XMLNode &Node)
std::string ID() const
Definition: Collection.h:37
CReleaseList * ReleaseList() const
virtual void ParseAttribute(const std::string &Name, const std::string &Value)
virtual std::ostream & Serialise(std::ostream &os) const
std::string Name() const
static std::string GetElementName()