libmusicbrainz5
5.0.1
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Typedefs
Enumerations
Enumerator
Macros
Pages
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 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_DISC_H
26
#define _MUSICBRAINZ5_DISC_H
27
28
#include "
musicbrainz5/Entity.h
"
29
#include "
musicbrainz5/ReleaseList.h
"
30
31
#include "
musicbrainz5/Lifespan.h
"
32
33
#include <string>
34
#include <iostream>
35
36
#include "musicbrainz5/xmlParser.h"
37
38
namespace
MusicBrainz5
39
{
40
class
CDiscPrivate;
41
42
class
CDisc
:
public
CEntity
43
{
44
public
:
45
CDisc
(
const
XMLNode& Node=XMLNode::emptyNode());
46
CDisc
(
const
CDisc
& Other);
47
CDisc
&
operator =
(
const
CDisc
& Other);
48
virtual
~CDisc
();
49
50
virtual
CDisc
*
Clone
();
51
52
std::string
ID
()
const
;
53
int
Sectors
()
const
;
54
CReleaseList
*
ReleaseList
()
const
;
55
56
virtual
std::ostream&
Serialise
(std::ostream& os)
const
;
57
static
std::string
GetElementName
();
58
59
protected
:
60
virtual
void
ParseAttribute
(
const
std::string& Name,
const
std::string& Value);
61
virtual
void
ParseElement
(
const
XMLNode& Node);
62
63
private
:
64
void
Cleanup();
65
66
CDiscPrivate *
const
m_d;
67
};
68
}
69
70
#endif
include
musicbrainz5
Disc.h
Generated on Sat Nov 2 2013 09:16:01 for libmusicbrainz5 by
1.8.1.2