libmusicbrainz5
5.1.0
Toggle main menu visibility
Loading...
Searching...
No Matches
Collection.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_COLLECTION_H
27
#define _MUSICBRAINZ5_COLLECTION_H
28
29
#include "
musicbrainz5/Entity.h
"
30
#include "
musicbrainz5/ReleaseList.h
"
31
32
#include "musicbrainz5/xmlParser.h"
33
34
namespace
MusicBrainz5
35
{
36
class
CCollectionPrivate;
37
38
class
CCollection
:
public
CEntity
39
{
40
public
:
41
CCollection
(
const
XMLNode& Node);
42
CCollection
(
const
CCollection
& Other);
43
CCollection
&
operator =
(
const
CCollection
& Other);
44
virtual
~CCollection
();
45
46
virtual
CCollection
*
Clone
();
47
48
std::string
ID
()
const
;
49
std::string
Name
()
const
;
50
std::string
Editor
()
const
;
51
CReleaseList
*
ReleaseList
()
const
;
52
53
virtual
std::ostream&
Serialise
(std::ostream& os)
const
;
54
static
std::string
GetElementName
();
55
56
protected
:
57
virtual
void
ParseAttribute
(
const
std::string&
Name
,
const
std::string& Value);
58
virtual
void
ParseElement
(
const
XMLNode& Node);
59
60
private
:
61
void
Cleanup();
62
63
CCollectionPrivate *
const
m_d;
64
};
65
}
66
67
#endif
Entity.h
ReleaseList.h
MusicBrainz5::CCollection::operator=
CCollection & operator=(const CCollection &Other)
MusicBrainz5::CCollection::CCollection
CCollection(const CCollection &Other)
MusicBrainz5::CCollection::ReleaseList
CReleaseList * ReleaseList() const
MusicBrainz5::CCollection::GetElementName
static std::string GetElementName()
MusicBrainz5::CCollection::~CCollection
virtual ~CCollection()
MusicBrainz5::CCollection::ID
std::string ID() const
MusicBrainz5::CCollection::ParseAttribute
virtual void ParseAttribute(const std::string &Name, const std::string &Value)
MusicBrainz5::CCollection::Editor
std::string Editor() const
MusicBrainz5::CCollection::Name
std::string Name() const
MusicBrainz5::CCollection::CCollection
CCollection(const XMLNode &Node)
MusicBrainz5::CCollection::Clone
virtual CCollection * Clone()
MusicBrainz5::CCollection::Serialise
virtual std::ostream & Serialise(std::ostream &os) const
MusicBrainz5::CCollection::ParseElement
virtual void ParseElement(const XMLNode &Node)
MusicBrainz5::CEntity::CEntity
CEntity()
MusicBrainz5
Definition
Alias.h:37
MusicBrainz5::CReleaseList
CListImpl< CRelease > CReleaseList
Definition
ReleaseList.h:35
include
musicbrainz5
Collection.h
Generated by
1.17.0