libmusicbrainz3
3.0.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
entity.h
Go to the documentation of this file.
1
/*
2
* MusicBrainz -- The Internet music metadatabase
3
*
4
* Copyright (C) 2006 Lukas Lalinsky
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2.1 of the License, or (at your option) any later version.
10
*
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
*
20
*
21
*/
22
23
#ifndef __MUSICBRAINZ3_ENTITY_H__
24
#define __MUSICBRAINZ3_ENTITY_H__
25
26
#include <string>
27
#include <
musicbrainz3/musicbrainz.h
>
28
#include <
musicbrainz3/lists.h
>
29
#include <
musicbrainz3/relation.h
>
30
#include <
musicbrainz3/tag.h
>
31
32
namespace
MusicBrainz
33
{
34
56
class
MB_API
Entity
57
{
58
protected
:
59
67
Entity
(
const
std::string &
id
);
68
69
public
:
70
74
virtual
~
Entity
();
75
81
virtual
std::string getId()
const
;
82
88
virtual
void
setId(
const
std::string &value);
89
117
RelationList
getRelations(
const
std::string &targetType = std::string(),
118
const
std::string &relationType = std::string())
const
;
119
129
void
addRelation(
Relation
*relation);
130
140
int
getNumRelations()
const
;
141
151
Relation
*getRelation(
int
index);
152
153
TagList
&getTags();
154
int
getNumTags()
const
;
155
Tag
*getTag(
int
index);
156
157
float
getRating()
const
;
158
void
setRating(
float
rating);
159
160
int
getRatingVoteCount()
const
;
161
void
setRatingVoteCount(
int
count);
162
163
private
:
164
165
class
EntityPrivate;
166
EntityPrivate *d;
167
};
168
169
}
170
171
#endif
172
include
musicbrainz3
entity.h
Generated by
1.8.4