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