libmusicbrainz4
4.0.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Typedefs
Enumerations
Enumerator
Macros
Pages
Rating.h
Go to the documentation of this file.
1
/* --------------------------------------------------------------------------
2
3
libmusicbrainz4 - Client library to access MusicBrainz
4
5
Copyright (C) 2011 Andrew Hawkins
6
7
This file is part of libmusicbrainz4.
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
libmusicbrainz4 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 _MUSICBRAINZ4_RATING_H
26
#define _MUSICBRAINZ4_RATING_H
27
28
#include <iostream>
29
30
#include "
musicbrainz4/Entity.h
"
31
32
#include "musicbrainz4/xmlParser.h"
33
34
namespace
MusicBrainz4
35
{
36
class
CRatingPrivate;
37
38
class
CRating
:
public
CEntity
39
{
40
public
:
41
CRating
(
const
XMLNode& Node=XMLNode::emptyNode());
42
CRating
(
const
CRating
& Other);
43
CRating
&
operator =
(
const
CRating
& Other);
44
virtual
~CRating
();
45
46
virtual
CRating
*
Clone
();
47
48
int
VotesCount
()
const
;
49
double
Rating
()
const
;
50
51
virtual
std::ostream&
Serialise
(std::ostream& os)
const
;
52
static
std::string
GetElementName
();
53
54
protected
:
55
virtual
void
ParseAttribute
(
const
std::string& Name,
const
std::string& Value);
56
virtual
void
ParseElement
(
const
XMLNode& Node);
57
58
private
:
59
CRatingPrivate *
const
m_d;
60
};
61
}
62
63
#endif
include
musicbrainz4
Rating.h
Generated by
1.8.1.2