libmusicbrainz5 5.1.0
Disc.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_DISC_H
27#define _MUSICBRAINZ5_DISC_H
28
29#include "musicbrainz5/Entity.h"
31
33
34#include <string>
35#include <iostream>
36
37#include "musicbrainz5/xmlParser.h"
38
39namespace MusicBrainz5
40{
41 class CDiscPrivate;
42
43 class CDisc: public CEntity
44 {
45 public:
46 CDisc(const XMLNode& Node=XMLNode::emptyNode());
47 CDisc(const CDisc& Other);
48 CDisc& operator =(const CDisc& Other);
49 virtual ~CDisc();
50
51 virtual CDisc *Clone();
52
53 std::string ID() const;
54 int Sectors() 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 CDiscPrivate * const m_d;
68 };
69}
70
71#endif
Definition: Disc.h:44
virtual std::ostream & Serialise(std::ostream &os) const
static std::string GetElementName()
int Sectors() const
CDisc(const XMLNode &Node=XMLNode::emptyNode())
std::string ID() const
virtual CDisc * Clone()
virtual void ParseElement(const XMLNode &Node)
CDisc & operator=(const CDisc &Other)
virtual void ParseAttribute(const std::string &Name, const std::string &Value)
CDisc(const CDisc &Other)
CReleaseList * ReleaseList() const
Definition: Entity.h:43
Definition: ListImpl.h:35
Definition: Alias.h:37