libmusicbrainz5  5.1.0
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Macros Pages
FreeDBDisc.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_FREEDB_DISC_H
27 #define _MUSICBRAINZ5_FREEDB_DISC_H
28 
29 #include <string>
30 #include <iostream>
31 
32 #include "musicbrainz5/Entity.h"
34 
35 #include "musicbrainz5/xmlParser.h"
36 
37 namespace MusicBrainz5
38 {
39  class CFreeDBDiscPrivate;
40 
41  class CFreeDBDisc: public CEntity
42  {
43  public:
44  CFreeDBDisc(const XMLNode& Node);
45  CFreeDBDisc(const CFreeDBDisc& Other);
46  CFreeDBDisc& operator =(const CFreeDBDisc& Other);
47  virtual ~CFreeDBDisc();
48 
49  virtual CFreeDBDisc *Clone();
50 
51  std::string ID() const;
52  std::string Title() const;
53  std::string Artist() const;
54  std::string Category() const;
55  std::string Year() const;
57 
58  virtual std::ostream& Serialise(std::ostream& os) const;
59  static std::string GetElementName();
60 
61  protected:
62  virtual void ParseAttribute(const std::string& Name, const std::string& Value);
63  virtual void ParseElement(const XMLNode& Node);
64 
65  private:
66  void Cleanup();
67 
68  CFreeDBDiscPrivate * const m_d;
69  };
70 }
71 
72 #endif
CNonMBTrackList * NonMBTrackList() const
Definition: FreeDBDisc.h:41
static std::string GetElementName()
Definition: Alias.h:36
Definition: Entity.h:42
std::string Title() const
virtual void ParseElement(const XMLNode &Node)
std::string Artist() const
std::string ID() const
Definition: ListImpl.h:34
virtual void ParseAttribute(const std::string &Name, const std::string &Value)
std::string Year() const
virtual CFreeDBDisc * Clone()
std::string Category() const
virtual std::ostream & Serialise(std::ostream &os) const
CFreeDBDisc(const XMLNode &Node)
CFreeDBDisc & operator=(const CFreeDBDisc &Other)